fixup! dlkm: Add support to system_dlkm kernel modules build

AOSPs build system already takes care of copying modules from within "system_dlkm/lib/modules/"

This fixes the behavior from 4246a3ba6f which resulted in copying modules to "system_dlkm/lib/modules/lib/modules/" as well as "system_dlkm/lib/modules/", breaking system_dlkm module loading

Change-Id: I76cd7050bed409bb8306f6dfa4a80e6a4781f918
This commit is contained in:
Fabian Leutenegger 2024-09-09 10:46:57 +02:00
parent 43539015f1
commit 4898502afe
1 changed files with 3 additions and 1 deletions

View File

@ -20,8 +20,10 @@ endif
# Path to system_dlkm artifacts directory
ifneq ($(wildcard $(KERNEL_PREBUILT_DIR)/system_dlkm/),)
BOARD_SYSTEM_DLKM_SRC := $(KERNEL_PREBUILT_DIR)/system_dlkm
ifeq ($(wildcard $(BOARD_SYSTEM_DLKM_SRC)/lib/modules/),)
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(KERNEL_PREBUILT_DIR)/system_dlkm/,$(TARGET_COPY_OUT_SYSTEM_DLKM)/lib/modules)
$(call find-copy-subdir-files,*,$(BOARD_SYSTEM_DLKM_SRC)/,$(TARGET_COPY_OUT_SYSTEM_DLKM)/lib/modules)
endif
endif
# DLKM