diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-24 17:05:26 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-24 17:05:26 +0000 |
commit | 44e4c1bee33b54db7abd2d2414b6a4c0d0f37624 (patch) | |
tree | 46119cec6dbdf977594de60223094fad41f89c27 /include | |
parent | a5e1c6b8a3fd9dee8efe7cadbba75697d5c087af (diff) |
trigger a kernel module rebuild when the kernel config changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6671 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-build.mk | 5 | ||||
-rw-r--r-- | include/kernel-defaults.mk | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk index a89d9d9f25..d344702dda 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -92,10 +92,7 @@ define BuildKernel $(call Kernel/Configure) touch $$@ - $(LINUX_DIR)/.modules: $(LINUX_DIR)/.configured - rm -rf $(KERNEL_BUILD_DIR)/modules - @rm -f $(BUILD_DIR)/linux - ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux + $(LINUX_DIR)/.modules: $(LINUX_DIR)/.configured $(LINUX_DIR)/.config $(call Kernel/CompileModules) touch $$@ diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 61b5bdb2fd..3469cff200 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 |