summaryrefslogtreecommitdiffstats
path: root/dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-22 19:30:14 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:40 -0700
commitde3e372abdb553ff3a79f12830bb90252059f662 (patch)
tree0abd24152a1fbc35824f23dfefa010dc1b82ad4c /dts
parent53db2eec7aa60b07f11c9d46f12041b571319dbc (diff)
downloadu-boot-de3e372abdb553ff3a79f12830bb90252059f662.tar.gz
u-boot-de3e372abdb553ff3a79f12830bb90252059f662.tar.xz
u-boot-de3e372abdb553ff3a79f12830bb90252059f662.zip
Makefile: Build SPL dtbs in the spl/ directory
Rather than putting these in the top-level dts/ directory (which is intended for U-Boot proper), put them in the correct subdirectory for SPL (either spl/ or tpl/). This is where other SPL targets are kept, so this is more consistent. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'dts')
-rw-r--r--dts/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/dts/Makefile b/dts/Makefile
index 4cd65ce73d..c0a953ffac 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -16,10 +16,11 @@ else
DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb
endif
-$(obj)/dt-spl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
+spl/$(obj)/dt-spl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
+ mkdir -p $(dir $@)
$(call if_changed,fdtgrep)
-$(obj)/dt-tpl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
+tpl/$(obj)/dt-tpl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
$(call if_changed,fdtgrep)
ifeq ($(CONFIG_OF_DTB_PROPS_REMOVE),y)
@@ -55,8 +56,8 @@ obj-$(CONFIG_OF_EMBED) := dt.dtb.o
endif
dtbs: $(obj)/dt.dtb \
- $(if $(CONFIG_SPL),$(obj)/dt-spl.dtb) \
- $(if $(CONFIG_TPL),$(obj)/dt-tpl.dtb)
+ $(if $(CONFIG_SPL),spl/$(obj)/dt-spl.dtb) \
+ $(if $(CONFIG_TPL),tpl/$(obj)/dt-tpl.dtb)
@:
clean-files := dt.dtb.S dt-spl.dtb.S dt-tpl.dtb.S