summaryrefslogtreecommitdiff
path: root/include/kernel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-18 12:28:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-18 12:28:38 +0000
commit4c6c987f09c6973bb49aa452aca8332f6e620d12 (patch)
treec9a979ef4473f55e9a33a1c8d58eef183b673993 /include/kernel.mk
parenta3a9e039d87cbcd2efc47004e8bce099570a9020 (diff)
downloadmtk-20170518-4c6c987f09c6973bb49aa452aca8332f6e620d12.zip
mtk-20170518-4c6c987f09c6973bb49aa452aca8332f6e620d12.tar.gz
mtk-20170518-4c6c987f09c6973bb49aa452aca8332f6e620d12.tar.bz2
Improved autorebuild for kernel related stuff. - make modules_install in the kernel tree is no longer called - make modules is called on every target/compile run - kmod packages pull the kernel modules directly out of the kernel tree and have proper file depends on them
SVN-Revision: 6998
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 9792d04..119de86 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -32,7 +32,6 @@ else
LINUX_DIR := $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
MODULES_SUBDIR:=lib/modules/$(LINUX_VERSION)
- MODULES_DIR := $(KERNEL_BUILD_DIR)/modules/$(MODULES_SUBDIR)
TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/$(MODULES_SUBDIR)
LINUX_KERNEL:=$(KERNEL_BUILD_DIR)/vmlinux
@@ -108,6 +107,8 @@ define KernelPackage
endif
endif
$$(eval $$(call BuildPackage,kmod-$(1)))
+
+ $$(IPKG_kmod-$(1)): $$(FILES)
endef
define AutoLoad