Skip to content

Commit e6b1397

Browse files
committed
SpacemiT: U-Boot: Fixup circular deps
Avoid pattern recipe did not update peer target "warning". Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
1 parent fe035ab commit e6b1397

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 89900082cc79f487d16099dc929534a395418119 Mon Sep 17 00:00:00 2001
2+
From: Patrick Yavitz <pyavitz@gmail.com>
3+
Date: Fri, 15 May 2026 15:48:51 -0400
4+
Subject: [PATCH] Fixup circular deps
5+
6+
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
7+
---
8+
tools/Makefile | 11 ++++++++++-
9+
1 file changed, 10 insertions(+), 1 deletion(-)
10+
11+
diff --git a/tools/Makefile b/tools/Makefile
12+
index 36269196..d55d8698 100644
13+
--- a/tools/Makefile
14+
+++ b/tools/Makefile
15+
@@ -267,7 +267,16 @@ HOSTCFLAGS_sha512.o := -pedantic -DCONFIG_SHA512 -DCONFIG_SHA384
16+
quiet_cmd_wrap = WRAP $@
17+
cmd_wrap = echo "\#include <../$(patsubst $(obj)/%,%,$@)>" >$@
18+
19+
-$(obj)/boot/%.c $(obj)/common/%.c $(obj)/env/%.c $(obj)/lib/%.c:
20+
+$(obj)/boot/%.c: tools/boot/%.c
21+
+ $(call cmd,wrap)
22+
+
23+
+$(obj)/common/%.c: tools/common/%.c
24+
+ $(call cmd,wrap)
25+
+
26+
+$(obj)/env/%.c: tools/env/%.c
27+
+ $(call cmd,wrap)
28+
+
29+
+$(obj)/lib/%.c: tools/lib/%.c
30+
$(call cmd,wrap)
31+
32+
clean-dirs := lib common
33+
--
34+
2.53.0
35+

0 commit comments

Comments
 (0)