]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Makefile: Pass the U-Boot phase to dtoc
authorSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 13:01:03 +0000 (06:01 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:27 +0000 (19:23 +1300)
Pass the U-Boot phase as a parameter so dtoc can use it. At present it is
ether "spl" or "tpl".

Signed-off-by: Simon Glass <sjg@chromium.org>
scripts/Makefile.spl

index 1fd63efdfd365d6e5a2f13a78fe6713a9d4a14ce..bfae9a4fca48a1a603286e7fd071a7f1c407d210 100644 (file)
@@ -311,7 +311,7 @@ $(obj)/$(SPL_BIN).dtb: $(obj)/dts/dt-$(SPL_NAME).dtb FORCE
 pythonpath = PYTHONPATH=scripts/dtc/pylibfdt
 
 DTOC_ARGS := $(pythonpath) $(srctree)/tools/dtoc/dtoc \
-       -d $(obj)/$(SPL_BIN).dtb
+       -d $(obj)/$(SPL_BIN).dtb -p $(SPL_NAME)
 
 quiet_cmd_dtoc = DTOC    $@
 cmd_dtoc = $(DTOC_ARGS) -c $(obj)/dts -C include/generated all