From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Lars Schmidt <l.schmidt@pengutronix.de>
Subject: [DistroKit] [PATCH 05/12] tf-a: unify handling of firmware parts for barebox
Date: Fri, 23 May 2025 10:10:42 +0200 [thread overview]
Message-ID: <20250523081049.1693633-6-l.schmidt@pengutronix.de> (raw)
In-Reply-To: <20250523081049.1693633-1-l.schmidt@pengutronix.de>
Technically the firmware parts are coming out of tf-a.
This moves the handling of the extra files for barebox all to
the same place and makes maintenance easier.
Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
---
configs/platform-v8a/rules/firmware-imx.make | 7 -------
configs/platform-v8a/rules/tf-a.barebox.make | 15 +++++++++++++++
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/configs/platform-v8a/rules/firmware-imx.make b/configs/platform-v8a/rules/firmware-imx.make
index 6b01af3..8a59b9f 100644
--- a/configs/platform-v8a/rules/firmware-imx.make
+++ b/configs/platform-v8a/rules/firmware-imx.make
@@ -29,12 +29,6 @@ FIRMWARE_IMX_LICENSE_FILES := \
#
# Firmware blobs for barebox
#
-ifdef PTXCONF_FIRMWARE_IMX
-BAREBOX_INJECT_FILES += imx8mm-bl31.bin:firmware/imx8mm-bl31.bin
-BAREBOX_INJECT_FILES += imx8mn-bl31.bin:firmware/imx8mn-bl31.bin
-BAREBOX_INJECT_FILES += imx8mp-bl31.bin:firmware/imx8mp-bl31.bin
-BAREBOX_INJECT_FILES += imx8mq-bl31.bin:firmware/imx8mq-bl31.bin
-BAREBOX_INJECT_FILES += imx93-bl31.bin:firmware/imx93-bl31.bin
ifdef PTXCONF_FIRMWARE_IMX_BOOTIMAGE_IMX8
BAREBOX_INJECT_FILES += ddr/synopsys/lpddr4_pmu_train_1d_dmem.bin:firmware/lpddr4_pmu_train_1d_dmem.bin
BAREBOX_INJECT_FILES += ddr/synopsys/lpddr4_pmu_train_1d_imem.bin:firmware/lpddr4_pmu_train_1d_imem.bin
@@ -45,7 +39,6 @@ BAREBOX_INJECT_FILES += ddr/synopsys/ddr4_dmem_2d.bin:firmware/ddr4_dmem_2d.bin
BAREBOX_INJECT_FILES += ddr/synopsys/ddr4_imem_1d.bin:firmware/ddr4_imem_1d.bin
BAREBOX_INJECT_FILES += ddr/synopsys/ddr4_imem_2d.bin:firmware/ddr4_imem_2d.bin
endif
-endif
# ----------------------------------------------------------------------------
# Extract
diff --git a/configs/platform-v8a/rules/tf-a.barebox.make b/configs/platform-v8a/rules/tf-a.barebox.make
index 4c61af2..6e22cba 100644
--- a/configs/platform-v8a/rules/tf-a.barebox.make
+++ b/configs/platform-v8a/rules/tf-a.barebox.make
@@ -2,4 +2,19 @@ ifdef PTXCONF_TF_A
ifneq ($(filter k3,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
BAREBOX_INJECT_FILES += k3-bl31.bin:firmware/k3-bl31.bin
endif
+ifneq ($(filter imx8mq,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
+BAREBOX_INJECT_FILES += imx8mq-bl31.bin:firmware/imx8mq-bl31.bin
+endif
+ifneq ($(filter imx8mm,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
+BAREBOX_INJECT_FILES += imx8mm-bl31.bin:firmware/imx8mm-bl31.bin
+endif
+ifneq ($(filter imx8mn,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
+BAREBOX_INJECT_FILES += imx8mn-bl31.bin:firmware/imx8mn-bl31.bin
+endif
+ifneq ($(filter imx8mp,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
+BAREBOX_INJECT_FILES += imx8mp-bl31.bin:firmware/imx8mp-bl31.bin
+endif
+ifneq ($(filter imx93,$(call remove_quotes, $(PTXCONF_TF_A_PLATFORMS))),)
+BAREBOX_INJECT_FILES += imx93-bl31.bin:firmware/imx93-bl31.bin
+endif
endif
\ No newline at end of file
--
2.39.5
next prev parent reply other threads:[~2025-05-23 8:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 8:10 [DistroKit] [PATCH 00/12] Add beagleplay support to DistroKit Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 01/12] v8a: barebox: bump version v2025.03.0 -> v2025.05.0 Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 02/12] beagleplay: tf-a: needs adaption for k3 boards Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 03/12] tf-a: k3 needs an additional compile argument Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 04/12] beagleplay: k3: barebox needs part of tf-a firmware Lars Schmidt
2025-05-23 8:10 ` Lars Schmidt [this message]
2025-05-23 8:49 ` [DistroKit] [PATCH 05/12] tf-a: unify handling of firmware parts for barebox Alexander Dahl
2025-05-23 8:10 ` [DistroKit] [PATCH 06/12] beagleplay: firmware-ti: initial package Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 07/12] beagleplay: barebox: first stage bootloader for Cortex-R5 Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 08/12] beagleplay: fipimage: add fip image for K3 Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 09/12] beagleplay: add full image including bootloaders and rootfs Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 10/12] beagleplay: add initial kernel configuration Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 11/12] beagleplay: barebox: update config for beagleplay Lars Schmidt
2025-05-23 8:10 ` [DistroKit] [PATCH 12/12] beagleplay: add initial platform config Lars Schmidt
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=20250523081049.1693633-6-l.schmidt@pengutronix.de \
--to=l.schmidt@pengutronix.de \
--cc=distrokit@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox