summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-04-24 19:17:26 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-04-27 09:39:47 +0200
commitb7836885d843067601cc533140378f12262b8f2d (patch)
treea7026cb077e4268294be17513a95746629ff9b0d /configs/platform-v7a/rules
parentf3b731600751a9a2859c1fd01805ee6324340bdb (diff)
downloadDistroKit-b7836885d843067601cc533140378f12262b8f2d.tar.gz
DistroKit-b7836885d843067601cc533140378f12262b8f2d.tar.xz
v7a: generate image for Linux Automation MC-1
With TF-A and barebox support added in previous commits, everything is now in place for having DistroKit generate a MC-1 rootfs image. Do so. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/rules')
-rw-r--r--configs/platform-v7a/rules/blspec-lxa-mc1.make36
-rw-r--r--configs/platform-v7a/rules/image-lxa-mc1.make35
2 files changed, 71 insertions, 0 deletions
diff --git a/configs/platform-v7a/rules/blspec-lxa-mc1.make b/configs/platform-v7a/rules/blspec-lxa-mc1.make
new file mode 100644
index 0000000..62cafb3
--- /dev/null
+++ b/configs/platform-v7a/rules/blspec-lxa-mc1.make
@@ -0,0 +1,36 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BLSPEC_LXA_MC1) += blspec-lxa-mc1
+
+BLSPEC_LXA_MC1_VERSION := 5.4
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blspec-lxa-mc1.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, blspec-lxa-mc1)
+ @$(call install_fixup,blspec-lxa-mc1,PRIORITY,optional)
+ @$(call install_fixup,blspec-lxa-mc1,SECTION,base)
+ @$(call install_fixup,blspec-lxa-mc1,AUTHOR,"Ahmad Fatoum <a.fatoum@pengutronix.de>")
+ @$(call install_fixup,blspec-lxa-mc1,DESCRIPTION,missing)
+
+ @$(call install_alternative, blspec-lxa-mc1, 0, 0, 0644, \
+ /loader/entries/lxa-mc1.conf)
+
+ @$(call install_finish,blspec-lxa-mc1)
+
+ @$(call touch)
+
+# vim: syntax=make
diff --git a/configs/platform-v7a/rules/image-lxa-mc1.make b/configs/platform-v7a/rules/image-lxa-mc1.make
new file mode 100644
index 0000000..c08e246
--- /dev/null
+++ b/configs/platform-v7a/rules/image-lxa-mc1.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_LXA_MC1) += image-lxa-mc1
+
+IMAGE_LXA_MC1_ENV := \
+ STM32MP_BOARD=stm32mp157c-lxa-mc1
+
+#
+# Paths and names
+#
+IMAGE_LXA_MC1 := image-lxa-mc1
+IMAGE_LXA_MC1_DIR := $(BUILDDIR)/$(IMAGE_LXA_MC1)
+IMAGE_LXA_MC1_IMAGE := $(IMAGEDIR)/lxa-mc1.hdimg
+IMAGE_LXA_MC1_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_LXA_MC1_CONFIG := stm32mp.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_LXA_MC1_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_LXA_MC1)
+ @$(call finish)
+
+# vim: syntax=make