DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 4/8] v7a: barebox-stm32mp: start collecting device tree blobs
Date: Mon, 25 Jul 2022 14:04:41 +0200	[thread overview]
Message-ID: <20220725120445.1295669-4-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20220725120445.1295669-1-a.fatoum@pengutronix.de>

FIP images are passed along a device tree via r2 (called hardware
config). As we want barebox to be booted with the barebox DT to
decouple kernel and bootloader updates, install the relevant barebox
DTs, but with a barebox- prefix as they would conflict with kernel
device tree blobs otherwise.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v7a/rules/barebox-stm32mp.make | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make
index f120a097255f..aeb141f2729b 100644
--- a/configs/platform-v7a/rules/barebox-stm32mp.make
+++ b/configs/platform-v7a/rules/barebox-stm32mp.make
@@ -49,7 +49,14 @@ BAREBOX_STM32MP_IMAGES := \
 	images/barebox-stm32mp15x-ev1.img \
 	images/barebox-stm32mp157c-lxa-mc1.img
 
+BAREBOX_STM32MP_FIP_DTBS := \
+	stm32mp157c-dk2.dtb \
+	stm32mp157c-ev1.dtb \
+	stm32mp157c-lxa-mc1.dtb
+
 BAREBOX_STM32MP_IMAGES := $(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/,$(BAREBOX_STM32MP_IMAGES))
+BAREBOX_STM32MP_FIP_DTBS := \
+	$(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/arch/arm/dts/,$(BAREBOX_STM32MP_FIP_DTBS))
 
 ifdef PTXCONF_BAREBOX_STM32MP
 $(BAREBOX_STM32MP_CONFIG):
@@ -87,6 +94,9 @@ $(STATEDIR)/barebox-stm32mp.targetinstall:
 	@$(foreach image, $(BAREBOX_STM32MP_IMAGES), \
 		install -m 644 \
 			$(image) $(IMAGEDIR)/$(notdir $(image));)
+	@$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \
+			install -m 644 \
+			$(dtb) $(IMAGEDIR)/barebox-$(notdir $(dtb));)
 	@$(call touch)
 
 # ----------------------------------------------------------------------------
@@ -98,6 +108,8 @@ $(STATEDIR)/barebox-stm32mp.clean:
 	@$(call clean_pkg, BAREBOX_STM32MP)
 	@$(foreach image, $(BAREBOX_STM32MP_IMAGES), \
 		rm -fv $(IMAGEDIR)/$(notdir $(image))$(ptx/nl))
+	@$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \
+		rm -fv $(IMAGEDIR)/barebox-$(notdir $(dtb))$(ptx/nl))
 
 # ----------------------------------------------------------------------------
 # oldconfig / menuconfig
-- 
2.30.2




  parent reply	other threads:[~2022-07-25 12:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support Ahmad Fatoum
2022-09-05 14:28   ` Robert Schwebel
2022-07-25 12:04 ` Ahmad Fatoum [this message]
2022-07-25 12:04 ` [DistroKit] [PATCH 5/8] v7a: tf-a: start collecting FIP image components Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 6/8] v7a: tf-a: switch to FIP image Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 7/8] v7a: barebox: update v2022.04.0 → v2022.06.0 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 8/8] v7a: barebox: ignore card-detect for booted SD-Card Ahmad Fatoum
2022-09-05 13:51 ` [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Robert Schwebel

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=20220725120445.1295669-4-a.fatoum@pengutronix.de \
    --to=a.fatoum@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