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 | a01125e51b4c7e66db0fc72bf8d10698e4f536c6 (patch) | |
tree | 3e51321e10a009f6be92d1cac6acdcd5bc7b9c1d /include | |
parent | 0a459754666702f197bf979ed8957cc4e100b134 (diff) | |
download | upstream-a01125e51b4c7e66db0fc72bf8d10698e4f536c6.tar.gz upstream-a01125e51b4c7e66db0fc72bf8d10698e4f536c6.tar.bz2 upstream-a01125e51b4c7e66db0fc72bf8d10698e4f536c6.zip |
avoid repeating the same dependency multiple times
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-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)),) |