From 48aec8767495fd76397e1faa6b45f74e119dd8ab Mon Sep 17 00:00:00 2001 From: Juan Yescas Date: Fri, 28 Jun 2024 09:27:38 -0700 Subject: [PATCH] 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 --- core/product.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/product.mk b/core/product.mk index 5ceccbf087..a567d8fafc 100644 --- a/core/product.mk +++ b/core/product.mk @@ -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