diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 17:05:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-24 17:05:26 +0000 |
commit | 35317253e61385934becad42c99739ed3349a3b8 (patch) | |
tree | 200c26f51de5656678b08698976ef11298ed97f0 /include/kernel-defaults.mk | |
parent | cfb33b88bc95e1d1d6a78555e24bfc3f0146411b (diff) | |
download | mtk-20170518-35317253e61385934becad42c99739ed3349a3b8.zip mtk-20170518-35317253e61385934becad42c99739ed3349a3b8.tar.gz mtk-20170518-35317253e61385934becad42c99739ed3349a3b8.tar.bz2 |
trigger a kernel module rebuild when the kernel config changes
SVN-Revision: 6671
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r-- | include/kernel-defaults.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 61b5bdb..3469cff 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -49,6 +49,9 @@ define Kernel/Configure/Default $(SCRIPT_DIR)/config.pl '+' $(GENERIC_PLATFORM_DIR)/config-template $(LINUX_CONFIG) > $(LINUX_DIR)/.config; \ fi $(call Kernel/Configure/$(KERNEL)) + rm -rf $(KERNEL_BUILD_DIR)/modules + @rm -f $(BUILD_DIR)/linux + ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux endef define Kernel/CompileModules/Default |