1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-06-30 23:56:24 +03:00

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
This commit is contained in:
nbd 2007-03-24 17:05:26 +00:00
parent a5e1c6b8a3
commit 44e4c1bee3
3 changed files with 5 additions and 4 deletions

View File

@ -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 $$@

View File

@ -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

View File

@ -14,6 +14,7 @@ PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
PKG_RELEASE:=$(LINUX_RELEASE)
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
PKG_FILE_DEPEND:=$(MODULES_DIR)
# build all in-tree kmod-* packages by default
KMOD_DEFAULT:=m