summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules/image-vexpress-nor.make
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2017-06-16 08:58:08 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-07-03 22:59:34 +0200
commitcc1fee168d497fc1fb2546bf4d3a836208a5b3df (patch)
tree700ee4fd8eaf33d5e0cf2c48ae135137e12f2c2c /configs/platform-v7a/rules/image-vexpress-nor.make
parent421193e8981287d6edc70af6d2996a5296438f87 (diff)
downloadDistroKit-cc1fee168d497fc1fb2546bf4d3a836208a5b3df.tar.gz
DistroKit-cc1fee168d497fc1fb2546bf4d3a836208a5b3df.tar.xz
platform-v7a: vexpress: add board support
Add support for Versatile Express, with the configs+rules for image creation and bootspec entries. Note that vexpress in qemu can currently only boot from nor, so we put the bootloader, environment and boot state there and the rest of the system into mmc. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> [add vexpress.conf] Signed-off-by: Chris Fiege <c.fiege@pengutronix.de> [improve commit description] [split from vexpress patches] [fix and cleanupimage generation] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules/image-vexpress-nor.make')
-rw-r--r--configs/platform-v7a/rules/image-vexpress-nor.make37
1 files changed, 37 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/image-vexpress-nor.make b/configs/platform-v7a/rules/image-vexpress-nor.make
new file mode 100644
index 0000000..20773e1
--- /dev/null
+++ b/configs/platform-v7a/rules/image-vexpress-nor.make
@@ -0,0 +1,37 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Michael Olbrich <m.olbrich@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_VEXPRESS_NOR) += image-flash
+
+#
+# Paths and names
+#
+IMAGE_VEXPRESS_NOR := image-flash
+IMAGE_VEXPRESS_NOR_DIR := $(BUILDDIR)/$(IMAGE_VEXPRESS_NOR)
+IMAGE_VEXPRESS_NOR_IMAGE := $(IMAGEDIR)/vexpress.norimg
+IMAGE_VEXPRESS_NOR_CONFIG := vexpress-nor.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+# Note: no ':' and only works with one device tree
+IMAGE_VEXPRESS_NOR_ENV = \
+ DTB=$(IMAGEDIR)/vexpress-v2p-ca9.dtb
+
+$(IMAGE_VEXPRESS_NOR_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_VEXPRESS_NOR)
+ @$(call finish)
+
+# vim: syntax=make