summaryrefslogtreecommitdiffstats
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
parentf3b731600751a9a2859c1fd01805ee6324340bdb (diff)
downloadDistroKit-b7836885d843067601cc533140378f12262b8f2d.tar.gz
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>
-rw-r--r--configs/platform-v7a/platformconfig2
-rw-r--r--configs/platform-v7a/platforms/blspec-lxa-mc1.in5
-rw-r--r--configs/platform-v7a/platforms/image-lxa-mc1.in11
-rw-r--r--configs/platform-v7a/projectroot/loader/entries/lxa-mc1.conf6
-rw-r--r--configs/platform-v7a/rules/blspec-lxa-mc1.make36
-rw-r--r--configs/platform-v7a/rules/image-lxa-mc1.make35
6 files changed, 95 insertions, 0 deletions
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 41ab61a..cfc70d4 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -208,6 +208,7 @@ PTXCONF_BLSPEC_BONEBLACK=y
PTXCONF_BLSPEC_BONEWHITE=y
# PTXCONF_BLSPEC_ENTRY is not set
PTXCONF_BLSPEC_GF=y
+PTXCONF_BLSPEC_LXA_MC1=y
PTXCONF_BLSPEC_NITROGEN6MAX=y
PTXCONF_BLSPEC_NITROGEN6X=y
PTXCONF_BLSPEC_RIOTBOARD=y
@@ -241,6 +242,7 @@ PTXCONF_IMAGE_KERNEL=y
#
PTXCONF_IMAGE_KERNEL_INSTALL_EARLY=y
# PTXCONF_IMAGE_KERNEL_LZOP is not set
+PTXCONF_IMAGE_LXA_MC1=y
# PTXCONF_IMAGE_RAUC is not set
PTXCONF_IMAGE_RIOTBOARD=y
# PTXCONF_IMAGE_ROOT_CPIO_GZ is not set
diff --git a/configs/platform-v7a/platforms/blspec-lxa-mc1.in b/configs/platform-v7a/platforms/blspec-lxa-mc1.in
new file mode 100644
index 0000000..87dcc9b
--- /dev/null
+++ b/configs/platform-v7a/platforms/blspec-lxa-mc1.in
@@ -0,0 +1,5 @@
+## SECTION=blspec
+
+config BLSPEC_LXA_MC1
+ tristate
+ prompt "/loader/entries/lxa-mc1.conf bootloader spec entry"
diff --git a/configs/platform-v7a/platforms/image-lxa-mc1.in b/configs/platform-v7a/platforms/image-lxa-mc1.in
new file mode 100644
index 0000000..baae9c4
--- /dev/null
+++ b/configs/platform-v7a/platforms/image-lxa-mc1.in
@@ -0,0 +1,11 @@
+## SECTION=image
+
+config IMAGE_LXA_MC1
+ tristate
+ select HOST_GENIMAGE
+ select IMAGE_ROOT_EXT
+ select BAREBOX_STM32MP
+ select TF_A
+ prompt "Generate images/lxa-mc1.hdimg"
+ help
+ Generate GPT image for the Linux Automation MC-1
diff --git a/configs/platform-v7a/projectroot/loader/entries/lxa-mc1.conf b/configs/platform-v7a/projectroot/loader/entries/lxa-mc1.conf
new file mode 100644
index 0000000..e0f418c
--- /dev/null
+++ b/configs/platform-v7a/projectroot/loader/entries/lxa-mc1.conf
@@ -0,0 +1,6 @@
+title PTXdist - Pengutronix-DistroKit
+version 5.5
+options rootwait rw loglevel=5 systemd.log_level=warning systemd.show_status=auto
+linux /boot/zImage
+devicetree /boot/stm32mp157c-lxa-mc1.dtb
+linux-appendroot true
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