From: Felix Fietkau Date: Tue, 3 Mar 2009 14:54:19 +0000 (+0000) Subject: avoid repeating the same dependency multiple times X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f3c14b3de8490a16cdb59f18239ce5afd3372708;p=openwrt%2Fstaging%2Fsvanheule.git avoid repeating the same dependency multiple times SVN-Revision: 14738 --- 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)),)