summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-07-22 15:35:20 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2021-07-22 16:30:40 +0200
commit8a56c6f369754c3fa9fa66f11d7f965520e54d1b (patch)
tree5ef1b9501f900e39158577a845ec1dc3472139cf /configs/platform-v7a/rules
parent4fda64a28d4dacb79b3edee4520c6acef9ac96fa (diff)
downloadDistroKit-8a56c6f369754c3fa9fa66f11d7f965520e54d1b.tar.gz
DistroKit-8a56c6f369754c3fa9fa66f11d7f965520e54d1b.tar.xz
v7a: generate image for STM32MP7C-EV1
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> Link: https://lore.pengutronix.de/20210722133520.17946-4-a.fatoum@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r--configs/platform-v7a/rules/barebox-stm32mp.make1
-rw-r--r--configs/platform-v7a/rules/blspec-stm32mp157c-ev1.make36
-rw-r--r--configs/platform-v7a/rules/image-stm32mp157c-ev1.make36
3 files changed, 73 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make
index 093063a..17548fa 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 0000000..6c3f1ee
--- /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 0000000..862ea5a
--- /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