target/sdk: ship .ko files to allow rebuild of the base kmod-* packages
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2016 23:18:14 +0000 (23:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 8 Jan 2016 23:18:14 +0000 (23:18 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48156

target/sdk/Makefile

index 012b597c8453ae9d757705fd2e99d5821e427b82..a90b177322820df86a43060c6fabb958954b6153 100644 (file)
@@ -68,6 +68,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
        mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
        $(CP) $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
        $(TAR) -cf - -C $(TOPDIR) \
+               `cd $(TOPDIR); find $(KDIR_BASE) -name \*.ko` \
                $(foreach exclude,$(EXCLUDE_DIRS),--exclude="$(exclude)") \
                $(SDK_DIRS) $(KERNEL_FILES) | \
                $(TAR) -xf - -C $(SDK_BUILD_DIR)