blob: b0fe1e4994103b18063a3addddae984809f22b71 [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: {
py2: {
enabled: false,
},
py3: {
enabled: true,
embedded_launcher: true,
},
},
}
python_binary_host {
name: "mkbootimg",
defaults: ["mkbootimg_defaults"],
srcs: [
"mkbootimg.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_test_host {
name: "mkbootimg_test",
defaults: ["mkbootimg_defaults"],
main: "tests/mkbootimg_test.py",
srcs: [
"tests/mkbootimg_test.py",
],
data: [
":avbtool",
"tests/data/*",
],
required: [
"avbtool",
"mkbootimg",
"unpack_bootimg",
],
test_suites: [
"general-tests",
],
}