[Pdbg] [PATCH] Makefile: Include template.S in dependencies

Joel Stanley joel at jms.id.au
Wed Aug 4 10:03:55 AEST 2021


Ensure that the devicetree objects are rebuilt when modifying
template.S.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index b0da6e7c4974..da17648f2255 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -320,7 +320,7 @@ p9z-fsi.dts: p9z-fsi.dts.m4 p9-fsi.dtsi
 %.dt.h: %.dts
 	$(GEN_V)$(srcdir)/generate_dt_header.sh $< > $@
 
-%.dtb.S: %.dtb
+%.dtb.S: %.dtb $(srcdir)/template.S
 	$(GEN_V)$(CPP) $(srcdir)/template.S \
 	-DSYMBOL_PREFIX=$(shell basename $< .S | tr '.-' '_')_o -DFILENAME=\"$<\" -o \
 	$@
-- 
2.32.0



More information about the Pdbg mailing list