diff options
author | Joseph Chen <chenjh@rock-chips.com> | 2019-04-09 21:07:36 +0800 |
---|---|---|
committer | Jianhong Chen <chenjh@rock-chips.com> | 2019-04-10 14:12:52 +0800 |
commit | 5055cc911ca1682100878e673442bc585546c5cf (patch) | |
tree | 8f36a6a88314d123ed98b28f0230f9595f965ede | |
parent | 6b5ade5a57c8b15b0cd4d0eca60640de0785fae5 (diff) |
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>
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |