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:
parent
d974be3009
commit
6cd2e197bd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue