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:
parent
6b5ade5a57
commit
5055cc911c
6
Makefile
6
Makefile
|
|
@ -924,7 +924,11 @@ endif
|
||||||
quiet_cmd_copy = COPY $@
|
quiet_cmd_copy = COPY $@
|
||||||
cmd_copy = cp $< $@
|
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)
|
$(call cmd,copy)
|
||||||
|
|
||||||
OBJCOPYFLAGS_u-boot.hex := -O ihex
|
OBJCOPYFLAGS_u-boot.hex := -O ihex
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue