From 510e4046a63fe6607bf328aeeb06ec2e36b56b0d Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Sat, 13 Apr 2019 22:30:25 +0800 Subject: [PATCH] Makefile: u-boot.itb: use dt-spl.dtb if using kernel dtb Change-Id: Ia8244dfefbdddb638779f56207e400b44590bb35 Signed-off-by: Joseph Chen --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index e121dbd4d9..62ce8879e1 100644 --- a/Makefile +++ b/Makefile @@ -1036,8 +1036,12 @@ u-boot-dtb.img u-boot.img u-boot.kwb u-boot.pbl u-boot-ivt.img: \ $(if $(CONFIG_SPL_LOAD_FIT),u-boot-nodtb.bin dts/dt.dtb,u-boot.bin) FORCE $(call if_changed,mkimage) +ifeq ($(CONFIG_USING_KERNEL_DTB),y) +u-boot.itb: u-boot-nodtb.bin dts/dt-spl.dtb $(U_BOOT_ITS) FORCE +else u-boot.itb: u-boot-nodtb.bin dts/dt.dtb $(U_BOOT_ITS) FORCE $(call if_changed,mkfitimage) +endif u-boot-spl.kwb: u-boot.img spl/u-boot-spl.bin FORCE $(call if_changed,mkimage)