build: msm_kernel_le: Add rule to generate super.img

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>
This commit is contained in:
Gokul krishna Krishnakumar 2023-07-20 14:58:28 -07:00
parent 72594b5d98
commit d709149956
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ def gen_allyes_files(le_target, target):
native.genrule(
name = rule_name,
srcs = [],
outs = ["vendor_boot.img", "super.img", "init_boot.img"],
outs = ["vendor_boot.img", "init_boot.img"],
cmd = """touch $(OUTS)
echo 'empty_file' | tee $(OUTS)""",
)

View File

@ -179,6 +179,7 @@ def _define_kernel_dist(target, msm_target, variant):
":{}_build_config".format(target),
":{}_dummy_files".format(le_target),
":{}_avb_sign_boot_image".format(target),
"//msm-kernel:{}_super_image".format(le_target + "_gki"),
]
copy_to_dist_dir(