diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-03 14:54:19 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-03 14:54:19 +0000 |
commit | f3c14b3de8490a16cdb59f18239ce5afd3372708 (patch) | |
tree | 7225a13cb1c220d2c5c14faa5c168938d8ee3d68 /include/kernel.mk | |
parent | 882190b198fcbeed01244d18e19c352337621206 (diff) | |
download | upstream-f3c14b3de8490a16cdb59f18239ce5afd3372708.tar.gz upstream-f3c14b3de8490a16cdb59f18239ce5afd3372708.tar.bz2 upstream-f3c14b3de8490a16cdb59f18239ce5afd3372708.zip |
avoid repeating the same dependency multiple times
SVN-Revision: 14738
Diffstat (limited to 'include/kernel.mk')
-rw-r--r-- | include/kernel.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 28567776ad..39be10a577 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)),) |