dlkm: Make the presence of system_dlkm optional

Avoid errors like:

find: 'device/xiaomi/marble-kernel/system_dlkm/': No such file or directory

Change-Id: I98134a59a05df3c6565494fbf1f44c5eb1066a77
This commit is contained in:
Adithya R 2023-10-08 20:44:13 +05:30
parent d974be3009
commit 6cd2e197bd
1 changed files with 2 additions and 1 deletions

View File

@ -18,10 +18,11 @@ $(warning $(KERNEL_PREBUILT_DIR) does not exist, have you compiled kernel?)
endif
# Path to system_dlkm artifacts directory
ifneq ($(wildcard $(KERNEL_PREBUILT_DIR)/system_dlkm/),)
BOARD_SYSTEM_DLKM_SRC := $(KERNEL_PREBUILT_DIR)/system_dlkm
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(KERNEL_PREBUILT_DIR)/system_dlkm/,$(TARGET_COPY_OUT_SYSTEM_DLKM)/lib/modules)
endif
# DLKM
define get-kernel-modules