From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: l.schmidt@pengutronix.de
Subject: [DistroKit] [PATCH v2 03/10] tf-a: unify handling of firmware parts for barebox
Date: Tue, 24 Jun 2025 17:46:53 +0200 [thread overview]
Message-ID: <20250624-am62-beagleplay-v2-3-9fcf3e67a98b@pengutronix.de> (raw)
In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@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 | 6 +++---
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/configs/platform-v8a/rules/firmware-imx.make b/configs/platform-v8a/rules/firmware-imx.make
index 6b01af3cdd51137ac441d796242f0a6d0505986c..8a59b9f553505127f5374149ae09755de8bd7dfd 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 4c61af2371462996787e6b23e68fec85e39ba460..72b009f142fdccc785b9465d76722a24de30bbba 100644
--- a/configs/platform-v8a/rules/tf-a.barebox.make
+++ b/configs/platform-v8a/rules/tf-a.barebox.make
@@ -1,5 +1,5 @@
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
+# currently k3, imx8(mq/mm/mn/mp), imx93
+BAREBOX_INJECT_FILES += $(foreach plat,$(TF_A_PLATFORMS), \
+ $(plat)-bl31.bin:firmware/$(plat)-bl31.bin)
endif
\ No newline at end of file
--
2.39.5
next prev parent reply other threads:[~2025-06-24 15:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 15:46 [DistroKit] [PATCH v2 00/10] Add beagleplay support to DistroKit Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 01/10] v8a: barebox: bump version v2025.03.0 -> v2025.06.0 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 02/10] beagleplay: k3: barebox needs part of tf-a firmware Lars Schmidt
2025-06-24 15:46 ` Lars Schmidt [this message]
2025-06-24 15:46 ` [DistroKit] [PATCH v2 04/10] beagleplay: firmware-ti: initial package Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 05/10] beagleplay: barebox: first stage bootloader for Cortex-R5 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 06/10] beagleplay: fipimage: add fip image for K3 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 07/10] beagleplay: add full image including bootloaders and rootfs Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 08/10] beagleplay: add initial kernel configuration Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 09/10] beagleplay: barebox: get second boot stage running Lars Schmidt
2025-06-24 15:47 ` [DistroKit] [PATCH v2 10/10] 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=20250624-am62-beagleplay-v2-3-9fcf3e67a98b@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