diff mbox series

[U-Boot,V4,04/12] Makefile: build FIT image if CONFIG_SPL_FIT_GENERATOR defined

Message ID 1504073693-16900-4-git-send-email-peng.fan@nxp.com
State Changes Requested
Delegated to: Stefano Babic
Headers show
Series [U-Boot,V4,01/12] scripts: spl: fix typo | expand

Commit Message

Peng Fan Aug. 30, 2017, 6:14 a.m. UTC
Build FIT image if CONFIG_SPL_FIT_GENERATOR defined.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: "Cooper Jr., Franklin" <fcooper@ti.com>
Cc: "Álvaro Fernández Rojas" <noltari@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
---

V2: none
V3: none
V4: wrap using SPL_LOAD_FIT to avoid build error.

 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index a0f3bfd..efc8745 100644
--- a/Makefile
+++ b/Makefile
@@ -805,6 +805,12 @@  ALL-y += u-boot-tegra.bin u-boot-nodtb-tegra.bin
 ALL-$(CONFIG_OF_SEPARATE) += u-boot-dtb-tegra.bin
 endif
 
+ifdef CONFIG_SPL_LOAD_FIT
+ifneq ($(CONFIG_SPL_FIT_GENERATOR),"")
+ALL-y += u-boot.itb
+endif
+endif
+
 # Add optional build target if defined in board/cpu/soc headers
 ifneq ($(CONFIG_BUILD_TARGET),)
 ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)