All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH 2/7] boot/uboot: add support for firmware-ele-imx
Date: Tue, 20 Oct 2026 12:28:56 +0200	[thread overview]
Message-ID: <20261020102906.1918308-2-peter@korsgaard.com> (raw)
In-Reply-To: <20261020102906.1918308-1-peter@korsgaard.com>

Similar to the existing firmware-imx support, some platforms need the
EdgeLock Secure Enclave firmware when building U-Boot:

https://docs.u-boot-project.org/en/v2026.10/board/nxp/imx93_frdm.html

So add an option for this and extend the existing UBOOT_COPY_IMX_FW_FILES
logic to also handle it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 boot/uboot/Config.in |  9 +++++++++
 boot/uboot/uboot.mk  | 10 +++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index d4e77fd0f8..381a12197d 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -351,6 +351,15 @@ config BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE
 	  This option makes sure that the i.MX firmwares are copied into
 	  the U-Boot source directory.
 
+config BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE
+	bool "U-Boot needs firmware-ele-imx"
+	depends on BR2_PACKAGE_FIRMWARE_ELE_IMX
+	help
+	  Some i.MX8/i.MX9 platforms encapsulate NXP specific firmware
+	  for the EdgeLock Secure Enclave inside U-Boot.
+	  This option makes sure that the i.MX EdgeLock Secure Enclave
+	  firmware is copied into the U-Boot source directory.
+
 config BR2_TARGET_UBOOT_NEEDS_ROCKCHIP_RKBIN
 	bool "U-Boot needs rockchip-rkbin"
 	depends on BR2_PACKAGE_ROCKCHIP_RKBIN
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 96b8cd0d2e..99330a2f15 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -224,13 +224,21 @@ endif
 
 # Mainline U-Boot versions can create the i.MX specific boot images
 # and need some NXP firmware blobs.
+ifneq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE)$(BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE),)
+
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_FIRMWARE),y)
 UBOOT_DEPENDENCIES += firmware-imx
-UBOOT_IMX_FW_FILES = \
+UBOOT_IMX_FW_FILES += \
 	$(if $(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_HDMI_FW),signed_hdmi_imx8m.bin) \
 	$(if $(BR2_PACKAGE_FIRMWARE_IMX_LPDDR4),lpddr4*.bin) \
 	$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR4),ddr4*.bin) \
 	$(if $(BR2_PACKAGE_FIRMWARE_IMX_DDR3),ddr3*.bin)
+endif
+
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_IMX_ELE_FIRMWARE),y)
+UBOOT_DEPENDENCIES += firmware-ele-imx
+UBOOT_IMX_FW_FILES += $(FIRMWARE_ELE_IMX_AHAB_CONTAINER_IMAGE)
+endif
 
 define UBOOT_COPY_IMX_FW_FILES
 	$(foreach fw,$(UBOOT_IMX_FW_FILES),\
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-10-20 10:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20 10:28 [Buildroot] [PATCH 1/7] package/freescale-ele-imx: install with original filename Peter Korsgaard
2026-10-20 10:28 ` Peter Korsgaard [this message]
2026-10-20 10:28 ` [Buildroot] [PATCH 3/7] board/freescale: use flash.bin for imx9 boot file Peter Korsgaard
2026-10-20 10:28 ` [Buildroot] [PATCH 4/7] configs/imx93frdm_defconfig: new defconfig Peter Korsgaard
2026-10-20 10:28 ` [Buildroot] [PATCH 5/7] configs/imx93-evk_defconfig: drop explicit FIRMWARE_IMX_LPDDR4=y Peter Korsgaard
2026-10-20 10:29 ` [Buildroot] [PATCH 6/7] configs/imx93-evk_defconfig: switch to Bootlin glibc toolchain Peter Korsgaard
2026-10-20 10:29 ` [Buildroot] [PATCH 7/7] configs/imx93-evk_defconfig: include EdgeLock firmware in boot image Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261020102906.1918308-2-peter@korsgaard.com \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.