diff options
Diffstat (limited to 'target/Makefile')
-rw-r--r-- | target/Makefile | 6 |
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; \ |