Add 'linux26-modules' target to allow external drivers to be built with the kernel...
author"Steven J. Hill" <sjhill@realitydiluted.com>
Tue, 17 Jul 2007 13:28:31 +0000 (13:28 -0000)
committer"Steven J. Hill" <sjhill@realitydiluted.com>
Tue, 17 Jul 2007 13:28:31 +0000 (13:28 -0000)
target/linux/Makefile.in

index bee81a7ffdfd08615f3d1ff66c85a9125e615994..bbb3726d6ae6dc10dbd54558f086d9f16aa089b5 100644 (file)
@@ -136,7 +136,7 @@ $(TARGET_DIR)/boot/$(LINUX26_FORMAT): $(LINUX26_KERNEL)
        cp -dpf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
        touch -c $@
 
-$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.depend_done
+linux26-modules $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.depend_done
        rm -rf $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)
        rm -f $(TARGET_DIR)/sbin/cardmgr
        $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) modules
@@ -144,6 +144,7 @@ $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.depend
                DEPMOD=$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 \
                INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
        rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/build
+       rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/source
        touch -c $@
 
 linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed