From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by dpdk.org (Postfix) with ESMTP id B726B590F for ; Wed, 19 Mar 2014 12:34:57 +0100 (CET) Received: by mail-we0-f176.google.com with SMTP id x48so6817739wes.21 for ; Wed, 19 Mar 2014 04:36:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=S8vQqJ+epQaStStZwl49Ljmck+uDHABYiltmfh+mk20=; b=X+m1B39NY9BjRFmOMJnTBj64iN8oB02o/3VmyRb8ihspNBndknUoyPu3NbO48ubktX +TEcTjMtsNcC7AVmaChQQa9IBEJHqA+EmJ0P/bblDvhwU2hIna/CDrQ/LxZCgkalR90a q6GLFWFk9BrfRD2XPPxL6UnUwiwPeYkaz0/e4RCRbf2AE3jWbY0UMJLcJMFrQu54gS8r kxthM7NPaaY/hAGtUMNov9o8hD2omcsV1YtIpvh1vSSNovcrGr+P0VPcmrwSrvERYYUH cVUl1HMnscNOt+jA2hqx/3hPJeEIxMYj7f4odCWZrCiYR972FPSfVT8LUU/NTR2sp8Xb UWZw== X-Gm-Message-State: ALoCoQmJJhY6Rb5NfdVFOcacW0ZaYBkAE9LN0jAHXx7/7nBhsdTdx693CpdbxOffuxNwbgS1gaze X-Received: by 10.180.12.115 with SMTP id x19mr19202631wib.19.1395228989157; Wed, 19 Mar 2014 04:36:29 -0700 (PDT) Received: from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id c7sm10979576wjf.19.2014.03.19.04.36.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Mar 2014 04:36:28 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 19 Mar 2014 12:36:22 +0100 Message-Id: <1395228982-24858-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.9.0 Subject: [dpdk-dev] [PATCH] mk: fix dependencies when modifying config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2014 11:34:58 -0000 If .config file is changed and .depdirs was built before, it must be updated. It is now done silently (-s) in checkconfig rule. Now .depdirs is not redone if .config is older. It has been tested by enabling PMD_PCAP after a default build. KVARGS dependency should appear in .depdirs. Signed-off-by: Thomas Monjalon --- mk/rte.sdkconfig.mk | 1 + mk/rte.sdkdepdirs.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk index 3d05ba5..b4e45f2 100644 --- a/mk/rte.sdkconfig.mk +++ b/mk/rte.sdkconfig.mk @@ -114,6 +114,7 @@ checkconfig: fi $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk \ headerconfig NODOTCONF=1 + $(Q)$(MAKE) -s depdirs .PHONY: FORCE FORCE: diff --git a/mk/rte.sdkdepdirs.mk b/mk/rte.sdkdepdirs.mk index 03dbdb1..bd3bac4 100644 --- a/mk/rte.sdkdepdirs.mk +++ b/mk/rte.sdkdepdirs.mk @@ -39,7 +39,8 @@ endif # use a "for" in a shell to process dependencies: we don't want this # task to be run in parallel. ..PHONY: depdirs -depdirs: +depdirs: $(RTE_OUTPUT)/.depdirs +$(RTE_OUTPUT)/.depdirs: $(RTE_OUTPUT)/.config @rm -f $(RTE_OUTPUT)/.depdirs ; \ for d in $(ROOTDIRS-y); do \ if [ -f $(RTE_SRCDIR)/$$d/Makefile ]; then \ -- 1.9.0