[CRIU] [PATCH 02/11] nmk: Filter out already seen targets from collect-deps

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 12 15:51:33 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 scripts/nmk/scripts/build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk
index 890a912d09b0..f16af03f2519 100644
--- a/scripts/nmk/scripts/build.mk
+++ b/scripts/nmk/scripts/build.mk
@@ -261,7 +261,7 @@ define collect-deps
         ifeq ($(lib-target),$(1))
                 deps-y += $(lib-y:.o=.d)
         endif
-        ifneq ($(filter all $(all-y) $(hostprogs-y),$(1)),)
+        ifneq ($(filter all $(filter-out $(builtin-target) $(lib-target), $(all-y)) $(hostprogs-y),$(1)),)
                 deps-y += $(obj-y:.o=.d)
                 deps-y += $(lib-y:.o=.d)
                 deps-y += $(foreach t,$(target),$(call objectify,$($(t)-lib-y:.o=.d)) $(call objectify,$($(t)-obj-y:.o=.d)))
-- 
2.14.4



More information about the CRIU mailing list