aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNeal Frager <neal.frager@amd.com>2022-12-21 07:54:46 +0000
committerMichal Simek <michal.simek@amd.com>2023-01-11 15:18:08 +0100
commit537ca0bee6e6ffd83926521e03c90bbc42cf65e2 (patch)
treec67a8131e958cc6ae0c3ac05f99fdff3482db322 /Makefile
parent66b39c1a8c7d56db35db0571b1d84518c948b5af (diff)
downloadu-boot-537ca0bee6e6ffd83926521e03c90bbc42cf65e2.zip
u-boot-537ca0bee6e6ffd83926521e03c90bbc42cf65e2.tar.gz
u-boot-537ca0bee6e6ffd83926521e03c90bbc42cf65e2.tar.bz2
makefile: add multi_dtb_fit dep
With certain gcc compilers, the u-boot.itb is built immediately after dtb generation. If CONFIG_MULTI_DTB_FIT is used, it is possible that the fit-dtb.blob is not finished in time. This patch adds a necessary dependency to guarantee that the fit-dtb.blob is built before attempting to build the u-boot.itb. Signed-off-by: Neal Frager <neal.frager@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20221221075446.47141-1-neal.frager@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a4a14d5..b23bdc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1449,6 +1449,7 @@ MKIMAGEFLAGS_u-boot.itb += -B 0x8
ifdef U_BOOT_ITS
u-boot.itb: u-boot-nodtb.bin \
$(if $(CONFIG_OF_SEPARATE)$(CONFIG_OF_EMBED)$(CONFIG_SANDBOX),dts/dt.dtb) \
+ $(if $(CONFIG_MULTI_DTB_FIT),$(FINAL_DTB_CONTAINER)) \
$(U_BOOT_ITS) FORCE
$(call if_changed,mkfitimage)
$(BOARD_SIZE_CHECK)