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
This commit is contained in:
Robin Peng 2024-08-02 09:14:34 +00:00
parent 4c5aff1313
commit 8cd5a64cd7

View file

@ -14,6 +14,8 @@
# limitations under the License. # limitations under the License.
# #
ifneq ($(wildcard $(TARGET_KERNEL_DIR)/16kb/),)
ifeq ($(TARGET_BOOTS_16K),true) ifeq ($(TARGET_BOOTS_16K),true)
# Configures the 16kb kernel directory. # Configures the 16kb kernel directory.
TARGET_KERNEL_DIR := $(TARGET_KERNEL_DIR)/16kb 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 BOARD_16K_OTA_MOVE_VENDOR := true
endif endif
endif