summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2015-06-26 12:03:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-28 15:14:56 +0200
commit03d5e04dde97ed54893cbb93670cbfdfad6d39c7 (patch)
tree55d0552512efce8098e92c3b5b5add851f01d41d /target/Makefile
parent3962e752d82e9b6e7e41e5ed3a777566212ad02e (diff)
enable using udev for automatic module loading
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile
index a0b99fc0e..e0fb607b2 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -135,6 +135,12 @@ clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean
%-imageprepare:
$(TRACE) target/$(patsubst %-imageprepare,%,$@)-imageprepare
+ifeq ($(ADK_RUNTIME_DEV_UDEV),y)
+ $(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)
+endif
@for x in $$(ls $(ADK_TOPDIR)/scripts/preimage/*.sh 2>/dev/null); do \
[[ -x "$$x" ]] && $$x; \
break; \