aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilas Bhat <vilasbhat@google.com>2024-03-26 04:09:17 +0000
committerVilas Bhat <vilasbhat@google.com>2024-03-26 15:49:39 +0000
commitd3ad962cdc38d1125c8b5db83ca26f7775bfe203 (patch)
tree3611e123f142326d2bf00889d6a279ad6e65e46b
parent89839911758b721603f11ea2edaed34e5c319d96 (diff)
downloadbuild-d3ad962cdc38d1125c8b5db83ca26f7775bfe203.tar.gz
16k: core: Remove page size limitation for setting TARGET_NO_BIONIC_PAGE_SIZE_MACRO
TARGET_NO_BIONIC_PAGE_SIZE_MACRO could be enabled regardless of the value specified by TARGET_MAX_PAGE_SIZE_SUPPORTED and hence, the check is no longer required. Test: lunch <target> && get_build_var TARGET_NO_BIONIC_PAGE_SIZE_MACRO Bug: 310232825 Change-Id: I4da314b803c4d84ac4ac1da691b9c195c2f2fb1d
-rw-r--r--core/config.mk8
-rw-r--r--core/product.mk3
2 files changed, 2 insertions, 9 deletions
diff --git a/core/config.mk b/core/config.mk
index c5df45c70f..daefa70f57 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -419,16 +419,10 @@ else
endif
.KATI_READONLY := TARGET_MAX_PAGE_SIZE_SUPPORTED
-# Boolean variable determining if AOSP is page size agnostic. This means
-# that AOSP can use a kernel configured with 4k/16k/64k PAGE SIZES.
+# Boolean variable determining if AOSP relies on bionic's PAGE_SIZE macro.
TARGET_NO_BIONIC_PAGE_SIZE_MACRO := false
ifdef PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO
TARGET_NO_BIONIC_PAGE_SIZE_MACRO := $(PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO)
- ifeq ($(TARGET_NO_BIONIC_PAGE_SIZE_MACRO),true)
- ifeq (,$(filter 16384 65536,$(TARGET_MAX_PAGE_SIZE_SUPPORTED)))
- $(error TARGET_MAX_PAGE_SIZE_SUPPORTED has to be either 16384 or 65536 to support page size agnostic)
- endif
- endif
endif
.KATI_READONLY := TARGET_NO_BIONIC_PAGE_SIZE_MACRO
diff --git a/core/product.mk b/core/product.mk
index d64dde2c68..01b5ead7db 100644
--- a/core/product.mk
+++ b/core/product.mk
@@ -33,8 +33,7 @@ _product_single_value_vars += PRODUCT_MODEL_FOR_ATTESTATION
# 4096, 16384 and 65536.
_product_single_value_vars += PRODUCT_MAX_PAGE_SIZE_SUPPORTED
-# Indicates that AOSP can use a kernel configured with 4k/16k/64k page sizes.
-# The possible values are true or false.
+# Boolean variable determining if AOSP relies on bionic's PAGE_SIZE macro.
_product_single_value_vars += PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO
# The resource configuration options to use for this product.