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/4] v7a: generate image for STM32MP7C-EV1
Date: Thu, 22 Jul 2021 15:35:20 +0200	[thread overview]
Message-ID: <20210722133520.17946-4-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20210722133520.17946-1-a.fatoum@pengutronix.de>

The STM32MP157C-EV1 Evaluation board is the full-feature demonstration
and development platform for STMicroelectronics Arm®-based dual
Cortex®-A7 32 bits and Cortex®-M4 32 bits MPUs in the STM32MP1 Series.

The small siblings DK1 and DK2 are already supported. Add now support
for the EV1 as well, so DistroKit can be used out-of-the-box with
all the official STM32MP1 development kits.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 configs/platform-v7a/platformconfig           |  6 ++--
 .../platforms/blspec-stm32mp157c-ev1.in       |  5 +++
 .../platforms/image-stm32mp157c-ev1.in        | 11 ++++++
 .../loader/entries/stm32mp157c-ev1.conf       |  6 ++++
 .../platform-v7a/rules/barebox-stm32mp.make   |  1 +
 .../rules/blspec-stm32mp157c-ev1.make         | 36 +++++++++++++++++++
 .../rules/image-stm32mp157c-ev1.make          | 36 +++++++++++++++++++
 7 files changed, 99 insertions(+), 2 deletions(-)
 create mode 100644 configs/platform-v7a/platforms/blspec-stm32mp157c-ev1.in
 create mode 100644 configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
 create mode 100644 configs/platform-v7a/projectroot/loader/entries/stm32mp157c-ev1.conf
 create mode 100644 configs/platform-v7a/rules/blspec-stm32mp157c-ev1.make
 create mode 100644 configs/platform-v7a/rules/image-stm32mp157c-ev1.make

diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index c485c43cb909..f664f4714604 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -152,7 +152,7 @@ PTXCONF_KERNEL_EXTRA_MAKEVARS=""
 PTXCONF_DTC=y
 PTXCONF_DTC_INSTALL_OFTREE=y
 PTXCONF_DTC_OFTREE_DTS_PATH="${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts"
-PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts bcm2837-rpi-cm3-io3.dts stm32mp157c-dk2.dts stm32mp157c-lxa-mc1.dts at91-sama5d27_som1_ek.dts at91-sama5d27_giantboard.dts"
+PTXCONF_DTC_OFTREE_DTS="am335x-bone.dts am335x-boneblack.dts vexpress-v2p-ca9.dts bcm2836-rpi-2-b.dts imx6q-sabrelite.dts imx6sx-udoo-neo-full.dts imx6dl-riotboard.dts imx6q-nitrogen6x.dts imx6qp-nitrogen6_max.dts bcm2837-rpi-3-b.dts bcm2837-rpi-cm3-io3.dts stm32mp157c-dk2.dts stm32mp157c-ev1.dts stm32mp157c-lxa-mc1.dts at91-sama5d27_som1_ek.dts at91-sama5d27_giantboard.dts"
 PTXCONF_DTC_EXTRA_ARGS=""
 PTXCONF_HOST_DTC=y
 PTXCONF_HOST_DTC_VERSION="1.6.0"
@@ -201,7 +201,7 @@ PTXCONF_TF_A_ARM_ARCH_MAJOR_7=y
 # PTXCONF_TF_A_ARM_ARCH_MAJOR_8_32_BIT is not set
 PTXCONF_TF_A_ARM_ARCH_MAJOR=7
 PTXCONF_TF_A_PLATFORMS="stm32mp1"
-PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_RAW_NAND=1 STM32MP_SPI_NAND=1 STM32MP_SPI_NOR=1"
+PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_RAW_NAND=1 STM32MP_SPI_NAND=1 STM32MP_SPI_NOR=1"
 PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32"
 
 #
@@ -231,6 +231,7 @@ PTXCONF_BLSPEC_SABRELITE=y
 PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y
 PTXCONF_BLSPEC_SAMA5D27_SOM1_EK=y
 PTXCONF_BLSPEC_STM32MP157C_DK2=y
+PTXCONF_BLSPEC_STM32MP157C_EV1=y
 PTXCONF_BLSPEC_UDOO_NEO=y
 PTXCONF_BLSPEC_VEXPRESS=y
 # end of bootloader spec entries       
@@ -284,6 +285,7 @@ PTXCONF_IMAGE_SABRELITE=y
 PTXCONF_IMAGE_SAMA5D27_GIANTBOARD=y
 PTXCONF_IMAGE_SAMA5D27_SOM1_EK=y
 PTXCONF_IMAGE_STM32MP157C_DK2=y
+PTXCONF_IMAGE_STM32MP157C_EV1=y
 PTXCONF_IMAGE_UDOO_NEO=y
 PTXCONF_IMAGE_VEXPRESS_NOR=y
 PTXCONF_IMAGE_VEXPRESS=y
diff --git a/configs/platform-v7a/platforms/blspec-stm32mp157c-ev1.in b/configs/platform-v7a/platforms/blspec-stm32mp157c-ev1.in
new file mode 100644
index 000000000000..02f6901d3321
--- /dev/null
+++ b/configs/platform-v7a/platforms/blspec-stm32mp157c-ev1.in
@@ -0,0 +1,5 @@
+## SECTION=blspec
+
+config BLSPEC_STM32MP157C_EV1
+	tristate
+	prompt "/loader/entries/stm32mp157c-ev1.conf bootloader spec entry"
diff --git a/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in b/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
new file mode 100644
index 000000000000..d0b60a4956c4
--- /dev/null
+++ b/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
@@ -0,0 +1,11 @@
+## SECTION=image
+
+config IMAGE_STM32MP157C_EV1
+	tristate
+	select HOST_GENIMAGE
+	select IMAGE_ROOT_EXT
+	select BAREBOX_STM32MP
+	select TF_A
+	prompt "Generate images/stm32mp157c-ev1.hdimg"
+	help
+	  Generate GPT image for the STM32MP157C-EV1
diff --git a/configs/platform-v7a/projectroot/loader/entries/stm32mp157c-ev1.conf b/configs/platform-v7a/projectroot/loader/entries/stm32mp157c-ev1.conf
new file mode 100644
index 000000000000..610e06c39063
--- /dev/null
+++ b/configs/platform-v7a/projectroot/loader/entries/stm32mp157c-ev1.conf
@@ -0,0 +1,6 @@
+title		PTXdist - Pengutronix-DistroKit
+version		5.13
+options		rootwait rw
+linux		/boot/zImage
+devicetree	/boot/stm32mp157c-ev1.dtb
+linux-appendroot true
diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make
index 093063a00af6..17548fa04ea2 100644
--- a/configs/platform-v7a/rules/barebox-stm32mp.make
+++ b/configs/platform-v7a/rules/barebox-stm32mp.make
@@ -46,6 +46,7 @@ BAREBOX_STM32MP_MAKE_OPT := $(BAREBOX_STM32MP_CONF_OPT)
 
 BAREBOX_STM32MP_IMAGES := \
 	images/barebox-stm32mp15xx-dkx.img \
+	images/barebox-stm32mp15x-ev1.img \
 	images/barebox-stm32mp157c-lxa-mc1.img
 
 BAREBOX_STM32MP_IMAGES := $(addprefix $(BAREBOX_STM32MP_DIR)/,$(BAREBOX_STM32MP_IMAGES))
diff --git a/configs/platform-v7a/rules/blspec-stm32mp157c-ev1.make b/configs/platform-v7a/rules/blspec-stm32mp157c-ev1.make
new file mode 100644
index 000000000000..6c3f1ee1ac38
--- /dev/null
+++ b/configs/platform-v7a/rules/blspec-stm32mp157c-ev1.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BLSPEC_STM32MP157C_EV1) += blspec-stm32mp157c-ev1
+
+BLSPEC_STM32MP157C_EV1_VERSION	:= 5.13
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blspec-stm32mp157c-ev1.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, blspec-stm32mp157c-ev1)
+	@$(call install_fixup,blspec-stm32mp157c-ev1,PRIORITY,optional)
+	@$(call install_fixup,blspec-stm32mp157c-ev1,SECTION,base)
+	@$(call install_fixup,blspec-stm32mp157c-ev1,AUTHOR,"Sascha Hauer <s.hauer@pengutronix.de>")
+	@$(call install_fixup,blspec-stm32mp157c-ev1,DESCRIPTION,missing)
+
+	@$(call install_alternative, blspec-stm32mp157c-ev1, 0, 0, 0644, \
+		/loader/entries/stm32mp157c-ev1.conf)
+
+	@$(call install_finish,blspec-stm32mp157c-ev1)
+
+	@$(call touch)
+
+# vim: syntax=make
diff --git a/configs/platform-v7a/rules/image-stm32mp157c-ev1.make b/configs/platform-v7a/rules/image-stm32mp157c-ev1.make
new file mode 100644
index 000000000000..862ea5a866ce
--- /dev/null
+++ b/configs/platform-v7a/rules/image-stm32mp157c-ev1.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_EV1) += image-stm32mp157c-ev1
+
+IMAGE_STM32MP157C_EV1_ENV := \
+	STM32MP_BOARD_FSBL=stm32mp157c-ev1 \
+	STM32MP_BOARD_SSBL=stm32mp15x-ev1
+
+#
+# Paths and names
+#
+IMAGE_STM32MP157C_EV1		:= image-stm32mp157c-ev1
+IMAGE_STM32MP157C_EV1_DIR	:= $(BUILDDIR)/$(IMAGE_STM32MP157C_EV1)
+IMAGE_STM32MP157C_EV1_IMAGE	:= $(IMAGEDIR)/stm32mp157c-ev1.hdimg
+IMAGE_STM32MP157C_EV1_FILES	:= $(IMAGEDIR)/root.tgz
+IMAGE_STM32MP157C_EV1_CONFIG	:= stm32mp.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_STM32MP157C_EV1_IMAGE):
+	@$(call targetinfo)
+	@$(call image/genimage, IMAGE_STM32MP157C_EV1)
+	@$(call finish)
+
+# vim: syntax=make
-- 
2.30.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  parent reply	other threads:[~2021-07-22 13:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 13:35 [DistroKit] [PATCH 1/4] v7a: barebox: version bump v2021.05.0 → v2021.07.0 Ahmad Fatoum
2021-07-22 13:35 ` [DistroKit] [PATCH 2/4] v7a: kernel: version bump v5.11 → v5.13.4 Ahmad Fatoum
2021-07-22 13:35 ` [DistroKit] [PATCH 3/4] v7a: kernel: enable REGULATOR_GPIO Ahmad Fatoum
2021-07-22 13:35 ` Ahmad Fatoum [this message]
2021-07-22 14:31 ` [DistroKit] [PATCH 1/4] v7a: barebox: version bump v2021.05.0 → v2021.07.0 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=20210722133520.17946-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