From f3c14b3de8490a16cdb59f18239ce5afd3372708 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 3 Mar 2009 14:54:19 +0000 Subject: [PATCH] avoid repeating the same dependency multiple times SVN-Revision: 14738 --- include/kernel.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)),) -- 2.30.2