From aca3375d1ae12b34905574e693d1df6873cb8fe7 Mon Sep 17 00:00:00 2001 From: Vilas Bhat Date: Mon, 1 Jul 2024 22:47:12 +0000 Subject: [PATCH] 16k: Configure 16k developer option for tegu Enable 16KB developer option on tegu depending on whether RELEASE_GOOGLE_TEGU_16K_DEVELOPER_OPTION flag is defined. Bug: 295035851 Bug: 349877551 Test: m with tegu-trunk_staging-userdebug Manually tested 16K developer option to ensure device boots with 16K page size $ adb shell getconf PAGE_SIZE 16384 $ adb shell uname -a Linux localhost 6.1.84-android14-11-g81e9f0610c73-ab12043309 #1 SMP PREEMPT Tue Jul 2 00:47:27 UTC 2024 aarch64 Toybox Flag: build.RELEASE_GOOGLE_TEGU_16K_DEVELOPER_OPTION Change-Id: I9406f8271be0cd3a88680b745ceac6f625dd8851 --- device-tegu.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device-tegu.mk b/device-tegu.mk index 713af3a..72b812b 100644 --- a/device-tegu.mk +++ b/device-tegu.mk @@ -42,6 +42,10 @@ TARGET_KERNEL_DIR ?= device/google/tegu-kernels/6.1/25D4 TARGET_BOARD_KERNEL_HEADERS ?= device/google/tegu-kernels/6.1/25D4/kernel-headers endif +ifneq ($(TARGET_BOOTS_16K),true) +PRODUCT_16K_DEVELOPER_OPTION := $(RELEASE_GOOGLE_TEGU_16K_DEVELOPER_OPTION) +endif + $(call inherit-product-if-exists, vendor/google_devices/tegu/prebuilts/device-vendor-tegu.mk) $(call inherit-product-if-exists, vendor/google_devices/zumapro/prebuilts/device-vendor.mk) $(call inherit-product-if-exists, vendor/google_devices/zumapro/proprietary/device-vendor.mk)