summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-06-16 08:58:08 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2017-06-30 21:50:36 +0200
commit20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02 (patch)
treeebea2eb3d0f699c457f6df898bdb595230351ce9 /configs/platform-v7a/rules
parentcb608a9d8c1b96eed87d8f52a459773cb8405525 (diff)
downloadDistroKit-20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02.tar.gz
DistroKit-20024a1f5f41dbfb0b5cbb7e09b31b2b0812ef02.tar.xz
platform-v7a: sabrelite: add board support
Add support for SabreLite, with the configs+rules for image creation and bootspec entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [improve commit description] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r--configs/platform-v7a/rules/blspec-sabrelite.make38
-rw-r--r--configs/platform-v7a/rules/image-sabrelite.make34
2 files changed, 72 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/blspec-sabrelite.make b/configs/platform-v7a/rules/blspec-sabrelite.make
new file mode 100644
index 0000000..47b2607
--- /dev/null
+++ b/configs/platform-v7a/rules/blspec-sabrelite.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
+#
+PACKAGES-$(PTXCONF_BLSPEC_SABRELITE) += blspec-sabrelite
+
+BLSPEC_SABRELITE_VERSION := 4.11
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blspec-sabrelite.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, blspec-sabrelite)
+ @$(call install_fixup,blspec-sabrelite,PRIORITY,optional)
+ @$(call install_fixup,blspec-sabrelite,SECTION,base)
+ @$(call install_fixup,blspec-sabrelite,AUTHOR,"Sascha Hauer <s.hauer@pengutronix.de>")
+ @$(call install_fixup,blspec-sabrelite,DESCRIPTION,missing)
+
+ @$(call install_alternative, blspec-sabrelite, 0, 0, 0644, \
+ /loader/entries/sabrelite.conf)
+
+ @$(call install_finish,blspec-sabrelite)
+
+ @$(call touch)
+
+# vim: syntax=make
diff --git a/configs/platform-v7a/rules/image-sabrelite.make b/configs/platform-v7a/rules/image-sabrelite.make
new file mode 100644
index 0000000..406d325
--- /dev/null
+++ b/configs/platform-v7a/rules/image-sabrelite.make
@@ -0,0 +1,34 @@
+# -*-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_SABRELITE) += image-sabrelite
+
+#
+# Paths and names
+#
+IMAGE_SABRELITE := image-sabrelite
+IMAGE_SABRELITE_DIR := $(BUILDDIR)/$(IMAGE_SABRELITE)
+IMAGE_SABRELITE_IMAGE := $(IMAGEDIR)/sabrelite.hdimg
+IMAGE_SABRELITE_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_SABRELITE_CONFIG := sabrelite.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_SABRELITE_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_SABRELITE)
+ @$(call finish)
+
+# vim: syntax=make