summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-03 14:54:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-03 14:54:19 +0000
commitf3c14b3de8490a16cdb59f18239ce5afd3372708 (patch)
tree7225a13cb1c220d2c5c14faa5c168938d8ee3d68 /include
parent882190b198fcbeed01244d18e19c352337621206 (diff)
downloadmtk-20170518-f3c14b3de8490a16cdb59f18239ce5afd3372708.zip
mtk-20170518-f3c14b3de8490a16cdb59f18239ce5afd3372708.tar.gz
mtk-20170518-f3c14b3de8490a16cdb59f18239ce5afd3372708.tar.bz2
avoid repeating the same dependency multiple times
SVN-Revision: 14738
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 2856777..39be10a 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -94,6 +94,12 @@ ifeq ($(DUMP)$(TARGET_BUILD),)
-include $(LINUX_DIR)/.config
endif
+define KernelPackage/depends
+ $(STAMP_BUILT): $(LINUX_DIR)/.config
+ define KernelPackage/depends
+ endef
+endef
+
define KernelPackage
NAME:=$(1)
$(eval $(call Package/Default))
@@ -126,7 +132,7 @@ $(call KernelPackage/$(1)/config)
endef
endif
- $(STAMP_BUILT): $(LINUX_DIR)/.config
+ $(call KernelPackage/depends)
ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),)
ifneq ($(strip $(FILES)),)