8a0b83b567
Enable the inclusion of variant-specific Android bootconfig parameters in vendor builds through the generation of a file containing them. Set "androidboot.console" to 0 for Vendor GKI variant by this method. Previously, this was set via the kernel command line, which leads to a VTS test failure that forbids "androidboot.*" parameters from being specified via kernel command line and redirects their inclusion via the `bootconfig` mechanism. Change-Id: Id449bd82d655082add0a80b3be221ada97fc1933 Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
44 lines
1.5 KiB
Python
44 lines
1.5 KiB
Python
def boot_image_opts(
|
|
boot_image_header_version = 4,
|
|
base_address = 0x80000000,
|
|
page_size = 4096,
|
|
super_image_size = 0x10000000,
|
|
boot_partition_size = 0x6000000,
|
|
lz4_ramdisk = True,
|
|
earlycon_addr = "0x00a9C000",
|
|
kernel_vendor_cmdline_extras = ["bootconfig"],
|
|
board_kernel_cmdline_extras = [],
|
|
board_bootconfig_extras = []):
|
|
return struct(
|
|
boot_image_header_version = boot_image_header_version,
|
|
base_address = base_address,
|
|
page_size = page_size,
|
|
super_image_size = super_image_size,
|
|
boot_partition_size = boot_partition_size,
|
|
lz4_ramdisk = lz4_ramdisk,
|
|
earlycon_addr = earlycon_addr,
|
|
kernel_vendor_cmdline_extras = kernel_vendor_cmdline_extras,
|
|
board_kernel_cmdline_extras = board_kernel_cmdline_extras,
|
|
board_bootconfig_extras = board_bootconfig_extras,
|
|
)
|
|
|
|
def vm_image_opts(
|
|
preferred_usespace = "vm",
|
|
vm_dtb_img_create = True,
|
|
kernel_offset = 0x0,
|
|
dtb_offset = 0x2000000,
|
|
ramdisk_offset = 0x2100000,
|
|
cmdline_cpio_offset = 0x2100000,
|
|
vm_size_ext4 = 270000000,
|
|
dummy_img_size = 4096):
|
|
return struct(
|
|
preferred_usespace = preferred_usespace,
|
|
vm_dtb_img_create = vm_dtb_img_create,
|
|
kernel_offset = kernel_offset,
|
|
dtb_offset = dtb_offset,
|
|
ramdisk_offset = ramdisk_offset,
|
|
cmdline_cpio_offset = cmdline_cpio_offset,
|
|
vm_size_ext4 = vm_size_ext4,
|
|
dummy_img_size = dummy_img_size,
|
|
)
|