DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: fix dependencies when modifying config
@ 2014-03-19 11:36 Thomas Monjalon
  2014-03-26 16:08 ` Olivier MATZ
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2014-03-19 11:36 UTC (permalink / raw)
  To: dev

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 <thomas.monjalon@6wind.com>
---
 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-26 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19 11:36 [dpdk-dev] [PATCH] mk: fix dependencies when modifying config Thomas Monjalon
2014-03-26 16:08 ` Olivier MATZ
2014-03-26 22:14   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).