diff options
author | Joel Stanley <joel@jms.id.au> | 2017-11-29 17:40:52 +1030 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2017-12-08 11:22:09 +1100 |
commit | 81957b54c1b6675d56738271795ae182a182e036 (patch) | |
tree | 8ffa5809629a774711a17b52a53bb7e10225b519 | |
parent | 8275ca370476a3b2a1fa752d892ee13c2e42d410 (diff) | |
download | pdbg-81957b54c1b6675d56738271795ae182a182e036.tar.gz pdbg-81957b54c1b6675d56738271795ae182a182e036.zip |
Makefile: seperate out dtb building steps
We currently produce the .dtb.o.tmp and then convert that into the .dtb.o
file in the same rule.
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index e9dd3b0..f47146f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,6 +60,9 @@ libpdbg_la_SOURCES = \ p9w-fsi.dtb.o: p9w-fsi.dts p9-fsi.dtsi p9r-fsi.dtb.o: p9r-fsi.dts p9-fsi.dtsi p9z-fsi.dtb.o: p9z-fsi.dts p9-fsi.dtsi -%.dtb.o: %.dts - dtc -i$(dir $@) -I dts $< -O dtb > $@.tmp + +%.dtb.o.tmp: %.dts + dtc -i$(dir $@) -I dts $< -O dtb > $@ + +%.dtb.o: %.dtb.o.tmp $(CC) -c $(top_srcdir)/template.S -DSYMBOL_PREFIX=$(shell echo $@ | tr '.-' '_') -DFILENAME=\"$@.tmp\" -o $@ |