From 4b38b32eb756e2faedd3622c28d7454ae4299237 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Wed, 19 Mar 2014 12:13:45 +0100 Subject: [PATCH] mk: fix dependencies when modifying config 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. There is also a typo fix for PHONY rule. Signed-off-by: Thomas Monjalon Acked-by: Olivier Matz --- mk/rte.sdkconfig.mk | 1 + mk/rte.sdkdepdirs.mk | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk index 3d05ba525b..b4e45f2412 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 03dbdb119e..1b8d02eabb 100644 --- a/mk/rte.sdkdepdirs.mk +++ b/mk/rte.sdkdepdirs.mk @@ -38,8 +38,9 @@ endif # use a "for" in a shell to process dependencies: we don't want this # task to be run in parallel. -..PHONY: depdirs -depdirs: +.PHONY: 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 \ -- 2.20.1