summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/Makefile6
-rw-r--r--target/config/Config.in.tools4
2 files changed, 7 insertions, 3 deletions
diff --git a/target/Makefile b/target/Makefile
index e0fb607b2..a2934682e 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -136,10 +136,10 @@ clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean
%-imageprepare:
$(TRACE) target/$(patsubst %-imageprepare,%,$@)-imageprepare
ifeq ($(ADK_RUNTIME_DEV_UDEV),y)
+ # This should be made a package instead
$(CP) -a $(BUILD_DIR)/linux-$(ADK_TARGET_ARCH)/modules/lib $(TARGET_DIR)
- rm -f "$(TARGET_DIR)/lib/modules/$(ADK_KERNEL_VERSION)/build" \
- "$(TARGET_DIR)/lib/modules/$(ADK_KERNEL_VERSION)/source"
- $(STAGING_HOST_DIR)/usr/bin/depmod -a -b $(TARGET_DIR) $(ADK_KERNEL_VERSION)
+ rm -f "$(TARGET_DIR)"/lib/modules/*/build \
+ "$(TARGET_DIR)"/lib/modules/*/source
endif
@for x in $$(ls $(ADK_TOPDIR)/scripts/preimage/*.sh 2>/dev/null); do \
[[ -x "$$x" ]] && $$x; \
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index 901751ff2..858e57ea3 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -207,6 +207,10 @@ config ADK_HOST_BUILD_PCRE
default y if ADK_HOST_DARWIN
default n
+config ADK_HOST_BUILD_KMOD
+ bool
+ default y
+
source "target/config/Config.in.prereq"
config ADK_COMPRESSION_TOOL