summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-03-02 12:03:56 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-03-05 18:27:07 +0100
commit3bce747e47170b219334f57102560a24cd67e6e0 (patch)
treeeba033c13b7822c3589e1b2ecca61cd5599e7d73 /configs/platform-v7a/rules/image-stm32mp157c-dk2.make
parentf2ef6f09ce1af63587cebaea120bb0a102879843 (diff)
downloadDistroKit-3bce747e47170b219334f57102560a24cd67e6e0.tar.gz
DistroKit-3bce747e47170b219334f57102560a24cd67e6e0.tar.xz
v7a: add stm32mp157c-dk2 SD-Card image
Both STM32MP BootROM and TF-A expect the subsequent bootloader stage to come from a GPT partition when booting from SD-Card. Add a genimage config that describes this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules/image-stm32mp157c-dk2.make')
-rw-r--r--configs/platform-v7a/rules/image-stm32mp157c-dk2.make38
1 files changed, 38 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
new file mode 100644
index 0000000..d5e5246
--- /dev/null
+++ b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
@@ -0,0 +1,38 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_DK2) += image-stm32mp157c-dk2
+
+IMAGE_STM32MP157C_DK2_ENV := \
+ STM32MP_BOARD=stm32mp157c-dk2
+
+#
+# Paths and names
+#
+IMAGE_STM32MP157C_DK2 := image-stm32mp157c-dk2
+IMAGE_STM32MP157C_DK2_DIR := $(BUILDDIR)/$(IMAGE_STM32MP157C_DK2)
+IMAGE_STM32MP157C_DK2_IMAGE := $(IMAGEDIR)/stm32mp157c-dk2.hdimg
+IMAGE_STM32MP157C_DK2_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_STM32MP157C_DK2_CONFIG := stm32mp.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_STM32MP157C_DK2_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_STM32MP157C_DK2)
+ @$(call finish)
+
+# vim: syntax=make
+