16kb: Define PRODUCT_BOOTS_16K to indicate that target boots with 16kb kernel

This build flag will indicate whether the target boots with 16kb kernel.
This flag will be used in pgagnostic targets and targets with
with the _16k suffix.

Define the build flag PRODUCT_BOOTS_16K

- When PRODUCT_BOOTS_16K := true, target boots with 16kb kernel.
- When PRODUCT_BOOTS_16K := false, target boots with 4kb kernel.

If the PRODUCT_BOOTS_16K is not defined, its value will be false by default.

Bug: 346868433
Test: Built Pixel 8 targets
      $ source build/envsetup.sh
      $ lunch husky-trunk_staging-userdebug
      $ get_build_var PRODUCT_BOOTS_16K
      false
Change-Id: Ifc5138dd76d2172e1c3bc2564efe91a0f83c5420
This commit is contained in:
Juan Yescas
2024-06-28 09:27:38 -07:00
parent c380fd04be
commit 48aec87674

View File

@@ -37,6 +37,9 @@ _product_single_value_vars += PRODUCT_CHECK_PREBUILT_MAX_PAGE_SIZE
# Boolean variable determining if AOSP relies on bionic's PAGE_SIZE macro.
_product_single_value_vars += PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO
# Boolean variable determining if the kernel boots with 16kb page size kernel.
_product_single_value_vars += PRODUCT_BOOTS_16K
# The resource configuration options to use for this product.
_product_list_vars += PRODUCT_LOCALES
_product_list_vars += PRODUCT_AAPT_CONFIG