DistroKit Mailinglist
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 1/5] v7a: stm32mp: images: allow differing board names for FSBL and SSBL
Date: Thu, 11 Mar 2021 19:12:52 +0100	[thread overview]
Message-ID: <20210311181256.180826-1-u.kleine-koenig@pengutronix.de> (raw)

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

             reply	other threads:[~2021-03-11 18:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 18:12 Uwe Kleine-König [this message]
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

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=20210311181256.180826-1-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=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