android_kernel_samsung_sm8650/allyes_images.bzl
Gokul krishna Krishnakumar c0dc05ca64 ANDROID: build: msm_kernel_le: Move the avb target from the dist target
avb signing was done in the dist target with commit (9a13ebd43a
"ANDROID: build: msm_kernel_le: Make boot image a chained partition").
Move this from the dist target so that the signing is done correct.

Change-Id: I51a48baaa3ad07773f6a696e75ee4899f9c10277
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2023-07-17 10:15:40 -07:00

24 lines
902 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", "super.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,
)