aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilas Bhat <vilasbhat@google.com>2024-03-26 00:11:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-03-26 00:11:12 +0000
commit89fefda17433f3e665e650e984389227a34f23ab (patch)
tree0d9dc5d53daa478d390de735175bba2839c98d3c
parentdecb8f4d1b9c859b23089542c36824652e0fa490 (diff)
parentd4e6add5b06d7a9f70bd4a081e2a462931c326c0 (diff)
downloadbuild-89fefda17433f3e665e650e984389227a34f23ab.tar.gz
Merge "16k: core: Add defaults for TARGET_MAX_PAGE_SIZE_SUPPORTED" into main
-rw-r--r--core/config.mk23
1 files changed, 8 insertions, 15 deletions
diff --git a/core/config.mk b/core/config.mk
index c109b1c1b0..c5df45c70f 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -407,25 +407,18 @@ ifdef PRODUCT_MAX_PAGE_SIZE_SUPPORTED
else ifeq ($(strip $(call is-low-mem-device)),true)
# Low memory device will have 4096 binary alignment.
TARGET_MAX_PAGE_SIZE_SUPPORTED := 4096
-else
- # The default binary alignment for userspace is 4096.
+else ifeq ($(call math_lt,$(VSR_VENDOR_API_LEVEL),34),true)
TARGET_MAX_PAGE_SIZE_SUPPORTED := 4096
- # When VSR vendor API level >= 34, binary alignment will be 65536.
- ifeq ($(call math_gt_or_eq,$(VSR_VENDOR_API_LEVEL),34),true)
- ifeq ($(TARGET_ARCH),arm64)
- TARGET_MAX_PAGE_SIZE_SUPPORTED := 16384
- endif
- endif
+else ifeq (,$(filter arm64 x86_64,$(TARGET_ARCH)))
+ # TARGET_MAX_PAGE_SIZE_SUPPORTED > 4096 is only supported in arm64 and
+ # x86_64 targets.
+ TARGET_MAX_PAGE_SIZE_SUPPORTED := 4096
+else
+ # The default binary alignment for userspace is 16384.
+ TARGET_MAX_PAGE_SIZE_SUPPORTED := 16384
endif
.KATI_READONLY := TARGET_MAX_PAGE_SIZE_SUPPORTED
-# Only arm64 and x86_64 archs supports TARGET_MAX_PAGE_SIZE_SUPPORTED greater than 4096.
-ifneq ($(TARGET_MAX_PAGE_SIZE_SUPPORTED),4096)
- ifeq (,$(filter arm64 x86_64,$(TARGET_ARCH)))
- $(error TARGET_MAX_PAGE_SIZE_SUPPORTED=$(TARGET_MAX_PAGE_SIZE_SUPPORTED) is greater than 4096. Only supported in arm64 and x86_64 archs)
- endif
-endif
-
# Boolean variable determining if AOSP is page size agnostic. This means
# that AOSP can use a kernel configured with 4k/16k/64k PAGE SIZES.
TARGET_NO_BIONIC_PAGE_SIZE_MACRO := false