d709149956
Handle the super.img generation cleanly from the build. super image generated has no dependency on vendor and system dlkms as the allyes variant has no ko's generated. We need to generate a proper super image as we validate the super image before flashing. Change-Id: I74991610ec64564663983a3ca98e3d16bd4039f5 Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
24 lines
889 B
Python
24 lines
889 B
Python
load(":avb_boot_img.bzl", "avb_sign_boot_image")
|
|
|
|
def gen_allyes_files(le_target, target):
|
|
""""Build empty vendor_boot/init_boot/super images fr allyes config."""
|
|
rule_name = "{}_dummy_files".format(le_target)
|
|
native.genrule(
|
|
name = rule_name,
|
|
srcs = [],
|
|
outs = ["vendor_boot.img", "init_boot.img"],
|
|
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,
|
|
)
|