24 lines
911 B
Python
Executable File
24 lines
911 B
Python
Executable File
load(":avb_boot_img.bzl", "avb_sign_boot_image")
|
|
|
|
def gen_allyes_files(le_target, target):
|
|
""""Build empty vendor_boot/init_boot/ for allyes config."""
|
|
rule_name = "{}_dummy_files".format(target)
|
|
native.genrule(
|
|
name = rule_name,
|
|
srcs = [],
|
|
outs = ["{}_vendor_boot.img".format(target), "{}_init_boot.img".format(target)],
|
|
cmd = """touch $(OUTS)
|
|
echo 'empty_file' | tee $(OUTS)""",
|
|
)
|
|
avb_sign_boot_image(
|
|
name = "{}_avb_sign_boot_image".format(target),
|
|
artifacts = "{}_images".format(target),
|
|
avbtool = "//prebuilts/kernel-build-tools:linux-x86/bin/avbtool",
|
|
key = "//tools/mkbootimg:gki/testdata/testkey_rsa4096.pem",
|
|
props = [
|
|
"com.android.build.boot.os_version:13",
|
|
"com.android.build.boot.security_patch:2023-05-05",
|
|
],
|
|
boot_partition_size = 0x6000000,
|
|
)
|