[PATCH 07/31] Fix Makefile warning about parallel targets
Simon Glass
sjg at chromium.org
Tue Apr 25 01:08:12 CEST 2023
These targets are not really parallel; they are handled one at a time
when invoked by other rules. Some recent versions of make (e.g. on MSYS2)
give a warning about this. Split out the rules to avoid the warning.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
tools/Makefile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/tools/Makefile b/tools/Makefile
index 38699b069d63..2c5df76638f6 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -263,7 +263,19 @@ HOSTCFLAGS_sha512.o := -pedantic -DCONFIG_SHA512 -DCONFIG_SHA384
quiet_cmd_wrap = WRAP $@
cmd_wrap = echo "\#include <../$(patsubst $(obj)/%,%,$@)>" >$@
-$(obj)/boot/%.c $(obj)/common/%.c $(obj)/env/%.c $(obj)/lib/%.c:
+# $(obj)/boot/%.c $(obj)/common/%.c $(obj)/env/%.c $(obj)/lib/%.c:
+# $(call cmd,wrap)
+
+$(obj)/boot/%.c:
+ $(call cmd,wrap)
+
+$(obj)/common/%.c:
+ $(call cmd,wrap)
+
+$(obj)/env/%.c:
+ $(call cmd,wrap)
+
+$(obj)/lib/%.c:
$(call cmd,wrap)
clean-dirs := lib common
--
2.40.0.634.g4ca3ef3211-goog
More information about the U-Boot
mailing list