diff mbox series

[1/1] u-boot: add an option to generate u-boot-nand.imx

Message ID CAJ6usDqFCPOvmnxsHq+cACEs-iue4hYq9Ua+iepsqqW8f7MR-A@mail.gmail.com
State New
Headers show
Series [1/1] u-boot: add an option to generate u-boot-nand.imx | expand

Commit Message

Matthew Allen April 21, 2025, 1:32 p.m. UTC
Some i.MX boards expect u-boot-nand.imx.

Introduce the BR2_TARGET_UBOOT_FORMAT_NAND_IMX to handle such cases.

Signed-off-by: Matthew Allen <matthew.allen@fleet.space>
---
boot/uboot/Config.in | 3 +++
boot/uboot/uboot.mk | 5 +++++
2 files changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index a2301b7747..b3f500482c 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -364,6 +364,9 @@  config BR2_TARGET_UBOOT_FORMAT_DTB_BIN
config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
bool "u-boot-nand.bin"
+config BR2_TARGET_UBOOT_FORMAT_NAND_IMX
+ bool "u-boot-nand.imx"
+
config BR2_TARGET_UBOOT_FORMAT_ELF
bool "u-boot"
help
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 2796b0a310..f27a1f6087 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -81,6 +81,11 @@  ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
UBOOT_BINS += u-boot-nand.bin
endif
+ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_IMX),y)
+UBOOT_BINS += u-boot-nand.imx
+UBOOT_MAKE_TARGET += u-boot-nand.imx
+endif
+
ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB_IMG),y)
UBOOT_BINS += u-boot-dtb.img
UBOOT_MAKE_TARGET += u-boot-dtb.img
-- 
2.34.1