DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH 1/5] v7a: stm32mp: images: allow differing board names for FSBL and SSBL
@ 2021-03-11 18:12 Uwe Kleine-König
  2021-03-11 18:12 ` [DistroKit] [PATCH 2/5] v7a: barebox update 2020.09.0 -> 2021.02.0 Uwe Kleine-König
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Uwe Kleine-König @ 2021-03-11 18:12 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

From: Ahmad Fatoum <a.fatoum@pengutronix.de>

So far, the two STM32MP1 boards we support had the same board name
string within the file names of first stage (TF-A) and second stage
(barebox) bootloaders. This will no longer be true when updating
to a more recent barebox version, as the dk2 image's name has been
changed to dkx to indicate support for both dk1 and dk2.
Prepare for this by splitting up STM32MP_BOARD_NAME.

No functional change.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 configs/platform-v7a/config/images/stm32mp.config     | 6 +++---
 configs/platform-v7a/rules/image-lxa-mc1.make         | 3 ++-
 configs/platform-v7a/rules/image-stm32mp157c-dk2.make | 3 ++-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/configs/platform-v7a/config/images/stm32mp.config b/configs/platform-v7a/config/images/stm32mp.config
index 6b915fd01e65..cbf965812626 100644
--- a/configs/platform-v7a/config/images/stm32mp.config
+++ b/configs/platform-v7a/config/images/stm32mp.config
@@ -5,15 +5,15 @@ image @IMAGE@ {
 		gpt-no-backup = true
 	}
 	partition fsbl1 {
-		image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32"
+		image = "stm32mp1-tf-a-@STM32MP_BOARD_FSBL@.stm32"
 		size = 256K
 	}
 	partition fsbl2 {
-		image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32"
+		image = "stm32mp1-tf-a-@STM32MP_BOARD_FSBL@.stm32"
 		size = 256K
 	}
 	partition ssbl {
-		image = "barebox-@STM32MP_BOARD@.img"
+		image = "barebox-@STM32MP_BOARD_SSBL@.img"
 		size = 1M
 	}
 	partition barebox-environment {
diff --git a/configs/platform-v7a/rules/image-lxa-mc1.make b/configs/platform-v7a/rules/image-lxa-mc1.make
index c08e246c1df3..058a9d100e11 100644
--- a/configs/platform-v7a/rules/image-lxa-mc1.make
+++ b/configs/platform-v7a/rules/image-lxa-mc1.make
@@ -12,7 +12,8 @@
 IMAGE_PACKAGES-$(PTXCONF_IMAGE_LXA_MC1) += image-lxa-mc1
 
 IMAGE_LXA_MC1_ENV := \
-	STM32MP_BOARD=stm32mp157c-lxa-mc1
+	STM32MP_BOARD_FSBL=stm32mp157c-lxa-mc1 \
+	STM32MP_BOARD_SSBL=stm32mp157c-lxa-mc1
 
 #
 # Paths and names
diff --git a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
index 864c899511c3..2c739d388c93 100644
--- a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
+++ b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
@@ -12,7 +12,8 @@
 IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_DK2) += image-stm32mp157c-dk2
 
 IMAGE_STM32MP157C_DK2_ENV := \
-	STM32MP_BOARD=stm32mp157c-dk2
+	STM32MP_BOARD_FSBL=stm32mp157c-dk2 \
+	STM32MP_BOARD_SSBL=stm32mp157c-dk2
 
 #
 # Paths and names
-- 
2.30.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-03-11 18:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 18:12 [DistroKit] [PATCH 1/5] v7a: stm32mp: images: allow differing board names for FSBL and SSBL Uwe Kleine-König
2021-03-11 18:12 ` [DistroKit] [PATCH 2/5] v7a: barebox update 2020.09.0 -> 2021.02.0 Uwe Kleine-König
2021-03-11 18:36   ` Robert Schwebel
2021-03-11 18:12 ` [DistroKit] [PATCH 3/5] v7a: Add support for Raspberry Pi CM3 Uwe Kleine-König
2021-03-11 18:37   ` Robert Schwebel
2021-03-11 18:12 ` [DistroKit] [PATCH 4/5] v7a/kernel: Enable driver for usb ethernet dongles AX8817X Uwe Kleine-König
2021-03-11 18:37   ` Robert Schwebel
2021-03-11 18:12 ` [DistroKit] [PATCH 5/5] v7a/barebox: Enable commands of_fixup_status and of_overlay Uwe Kleine-König
2021-03-11 18:37   ` Robert Schwebel
2021-03-11 18:36 ` [DistroKit] [PATCH 1/5] v7a: stm32mp: images: allow differing board names for FSBL and SSBL Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox