[Buildroot] [PATCH v2 4/8] boot/uboot/imx8: Add new target needed for mainline u-boot
Xavier Roumegue
xroumegue at gmail.com
Sat Nov 7 13:59:05 UTC 2020
Mainline u-boot support for the iMX8M based boards is no longer
using the external imx-mkimage command and instead building
the fit image directly inside U-Boot.
This fit image usually embeds ddr/hdmi firmware for iMX8M target.
Inspired from
https://github.com/SolidRun/buildroot/commit/0f2b2971e836b508bf9c2dac34426a59a9d83572
Signed-off-by: Xavier Roumegue <xroumegue at gmail.com>
---
boot/uboot/Config.in | 5 +++++
boot/uboot/uboot.mk | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index f44a5b4976..9d6e520cb6 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -280,6 +280,11 @@ config BR2_TARGET_UBOOT_FORMAT_DTB_IMX
config BR2_TARGET_UBOOT_FORMAT_ITB
bool "u-boot.itb"
+config BR2_TARGET_UBOOT_FORMAT_IMX_FIT
+ bool "flash.bin"
+ select BR2_PACKAGE_FIRMWARE_IMX
+ select BR2_TARGET_UBOOT_NEEDS_FW
+
config BR2_TARGET_UBOOT_FORMAT_KWB
bool "u-boot.kwb (Marvell)"
depends on BR2_arm
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 7a77fdb20b..2625248310 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -101,6 +101,12 @@ UBOOT_BINS += u-boot.imx
UBOOT_MAKE_TARGET += u-boot.imx
endif
+ifeq ($(BR2_TARGET_UBOOT_FORMAT_IMX_FIT),y)
+UBOOT_BINS = flash.bin
+UBOOT_MAKE_TARGET += flash.bin
+UBOOT_DEPENDENCIES += firmware-imx
+endif
+
ifeq ($(BR2_TARGET_UBOOT_FORMAT_SB),y)
UBOOT_BINS += u-boot.sb
UBOOT_MAKE_TARGET += u-boot.sb
--
2.28.0
More information about the buildroot
mailing list