blob: 1de023804cf3aa50ed3fe36fc2ffecb70bd6ad4c [file] [log] [blame]
// Copyright 2012 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libmkbootimg_abi_headers",
vendor_available: true,
export_include_dirs: ["include"],
}
cc_library_headers {
name: "bootimg_headers",
vendor_available: true,
recovery_available: true,
export_include_dirs: ["include/bootimg"],
host_supported: true,
target: {
windows: {
enabled: true,
},
},
apex_available: [
"//apex_available:platform",
"com.android.virt",
],
}
cc_library {
name: "libmkbootimg_abi_check",
vendor_available: true,
vndk: {
enabled: true,
},
srcs: [
"mkbootimg_dummy.cpp",
],
header_libs: ["libmkbootimg_abi_headers"],
export_header_lib_headers: ["libmkbootimg_abi_headers"],
}
python_defaults {
name: "mkbootimg_defaults",
version: {
py3: {
embedded_launcher: true,
},
},
}
python_binary_host {
name: "mkbootimg",
defaults: ["mkbootimg_defaults"],
main: "mkbootimg.py",
srcs: [
"mkbootimg.py",
"gki/generate_gki_certificate.py",
],
required: [
"avbtool",
],
}
python_binary_host {
name: "unpack_bootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"unpack_bootimg.py",
],
}
python_binary_host {
name: "repack_bootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"repack_bootimg.py",
],
required: [
"lz4",
"minigzip",
"mkbootfs",
"mkbootimg",
"toybox",
"unpack_bootimg",
],
}
python_binary_host {
name: "certify_bootimg",
defaults: ["mkbootimg_defaults"],
main: "gki/certify_bootimg.py",
srcs: [
"gki/certify_bootimg.py",
"gki/generate_gki_certificate.py",
"unpack_bootimg.py",
],
required: [
"avbtool",
],
}
python_test_host {
name: "mkbootimg_test",
defaults: ["mkbootimg_defaults"],
main: "tests/mkbootimg_test.py",
srcs: [
"tests/mkbootimg_test.py",
],
data: [
":avbtool",
":mkbootimg",
":unpack_bootimg",
"tests/data/*",
],
test_options: {
unit_test: true,
},
}