mirror of https://github.com/hak5/openwrt.git
trigger a kernel module rebuild when the kernel config changes
SVN-Revision: 6671lede-17.01
parent
cfb33b88bc
commit
35317253e6
|
@ -92,10 +92,7 @@ define BuildKernel
|
||||||
$(call Kernel/Configure)
|
$(call Kernel/Configure)
|
||||||
touch $$@
|
touch $$@
|
||||||
|
|
||||||
$(LINUX_DIR)/.modules: $(LINUX_DIR)/.configured
|
$(LINUX_DIR)/.modules: $(LINUX_DIR)/.configured $(LINUX_DIR)/.config
|
||||||
rm -rf $(KERNEL_BUILD_DIR)/modules
|
|
||||||
@rm -f $(BUILD_DIR)/linux
|
|
||||||
ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux
|
|
||||||
$(call Kernel/CompileModules)
|
$(call Kernel/CompileModules)
|
||||||
touch $$@
|
touch $$@
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,9 @@ define Kernel/Configure/Default
|
||||||
$(SCRIPT_DIR)/config.pl '+' $(GENERIC_PLATFORM_DIR)/config-template $(LINUX_CONFIG) > $(LINUX_DIR)/.config; \
|
$(SCRIPT_DIR)/config.pl '+' $(GENERIC_PLATFORM_DIR)/config-template $(LINUX_CONFIG) > $(LINUX_DIR)/.config; \
|
||||||
fi
|
fi
|
||||||
$(call Kernel/Configure/$(KERNEL))
|
$(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
|
endef
|
||||||
|
|
||||||
define Kernel/CompileModules/Default
|
define Kernel/CompileModules/Default
|
||||||
|
|
|
@ -14,6 +14,7 @@ PKG_VERSION:=$(LINUX_VERSION)-$(BOARD)
|
||||||
PKG_RELEASE:=$(LINUX_RELEASE)
|
PKG_RELEASE:=$(LINUX_RELEASE)
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/packages
|
||||||
|
PKG_FILE_DEPEND:=$(MODULES_DIR)
|
||||||
|
|
||||||
# build all in-tree kmod-* packages by default
|
# build all in-tree kmod-* packages by default
|
||||||
KMOD_DEFAULT:=m
|
KMOD_DEFAULT:=m
|
||||||
|
|
Loading…
Reference in New Issue