Enable the inclusion of variant-specific kernel command line parameters in vendor builds through the generation of a file containing them. Set "androidboot.console" to 0 and 1 for Vendor GKI and consolidate variants respectively, by this method. Additionally, enable "nosoftlockup" for the GKI variant of both Kernel Platform and Vendor builds by this method. Change-Id: Id2ce57bad4556cfa96c1a0215141a1f015066e8b Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com> Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
42 lines
1.4 KiB
Python
42 lines
1.4 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 = []):
|
|
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,
|
|
)
|
|
|
|
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,
|
|
)
|