Makefile: generate u-boot.dtb from dt-spl.dtb when using kernel dtb

u-boot.bin doesn't affect u-boot.bin generation, but without this patch,
it provides a wrong dtb file for user to debug when using kernel dtb.

'FORCE' is necessary to promise update u-boot.bin in every compilation.

Change-Id: I53e6b73cb2a457bde222f8b9c7844f3877d63cdc
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-04-09 21:07:36 +08:00 committed by Jianhong Chen
parent 6b5ade5a57
commit 5055cc911c
1 changed files with 5 additions and 1 deletions

View File

@ -924,7 +924,11 @@ endif
quiet_cmd_copy = COPY $@
cmd_copy = cp $< $@
u-boot.dtb: dts/dt.dtb
ifeq ($(CONFIG_USING_KERNEL_DTB),y)
u-boot.dtb: dts/dt-spl.dtb FORCE
else
u-boot.dtb: dts/dt.dtb FORCE
endif
$(call cmd,copy)
OBJCOPYFLAGS_u-boot.hex := -O ihex