forked from yaap/kernel_oneplus_sm8650
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allyes_images.bzl
23 lines (22 loc) · 889 Bytes
/
allyes_images.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
)