From 8cd5a64cd7aa45682b749e008e75eb66801b0890 Mon Sep 17 00:00:00 2001 From: Robin Peng Date: Fri, 2 Aug 2024 09:14:34 +0000 Subject: [PATCH] 16k: Ignore 16k kernel settings if 16kb folder doesn't exist to avoid build breakage with test kernel prebuilts (e.g. ag/28525733) that doesn't have 16kb artifacts in it. Bug: 349877551 Flag: EXEMPT bugfix Change-Id: I2f6c1f3365f624502366b883dbcd1066ed166cdb --- BoardConfig-16k-common.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BoardConfig-16k-common.mk b/BoardConfig-16k-common.mk index 0571d7a5..4b9c64ab 100644 --- a/BoardConfig-16k-common.mk +++ b/BoardConfig-16k-common.mk @@ -14,6 +14,8 @@ # limitations under the License. # +ifneq ($(wildcard $(TARGET_KERNEL_DIR)/16kb/),) + ifeq ($(TARGET_BOOTS_16K),true) # Configures the 16kb kernel directory. TARGET_KERNEL_DIR := $(TARGET_KERNEL_DIR)/16kb @@ -35,3 +37,5 @@ BOARD_KERNEL_MODULES_LOAD_16K := $(foreach module,$(BOARD_KERNEL_MODULES_16K),$( BOARD_16K_OTA_MOVE_VENDOR := true endif + +endif