DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 7/7] v7a: generate image for Linux Automation MC-1
Date: Fri, 24 Apr 2020 19:17:26 +0200	[thread overview]
Message-ID: <20200424171726.8330-7-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20200424171726.8330-1-a.fatoum@pengutronix.de>

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>
---
 configs/platform-v7a/platformconfig           |  2 ++
 .../platform-v7a/platforms/blspec-lxa-mc1.in  |  5 +++
 .../platform-v7a/platforms/image-lxa-mc1.in   | 11 ++++++
 .../projectroot/loader/entries/lxa-mc1.conf   |  6 ++++
 .../platform-v7a/rules/blspec-lxa-mc1.make    | 36 +++++++++++++++++++
 configs/platform-v7a/rules/image-lxa-mc1.make | 35 ++++++++++++++++++
 6 files changed, 95 insertions(+)
 create mode 100644 configs/platform-v7a/platforms/blspec-lxa-mc1.in
 create mode 100644 configs/platform-v7a/platforms/image-lxa-mc1.in
 create mode 100644 configs/platform-v7a/projectroot/loader/entries/lxa-mc1.conf
 create mode 100644 configs/platform-v7a/rules/blspec-lxa-mc1.make
 create mode 100644 configs/platform-v7a/rules/image-lxa-mc1.make

diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 41ab61a9b9bf..cfc70d4d0dcc 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 000000000000..87dcc9bd86cd
--- /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 000000000000..baae9c47edd4
--- /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 000000000000..e0f418c95398
--- /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 000000000000..62cafb30c52e
--- /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 000000000000..c08e246c1df3
--- /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
-- 
2.26.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  parent reply	other threads:[~2020-04-24 17:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 17:17 [DistroKit] [PATCH 1/7] ptxdist: migrate 2020.03.0 -> 2020.04.0 with defaults Ahmad Fatoum
2020-04-24 17:17 ` [DistroKit] [PATCH 2/7] v7a: tf-a: version bump v2.2 -> v2.3 Ahmad Fatoum
2020-04-24 17:17 ` [DistroKit] [PATCH 3/7] v7a: tf-a: add support for Linux Automation MC-1 Ahmad Fatoum
2020-04-24 17:17 ` [DistroKit] [PATCH 4/7] v7a: kernel: configure for MC-1 Ahmad Fatoum
2020-04-24 17:17 ` [DistroKit] [PATCH 5/7] v7a: stm32mp: add Linux Automation MC-1 device tree Ahmad Fatoum
2020-04-24 17:17 ` [DistroKit] [PATCH 6/7] v7a: barebox: add support for Linux Automation MC-1 Ahmad Fatoum
2020-04-24 17:17 ` Ahmad Fatoum [this message]
2020-04-26  7:47 ` [DistroKit] [PATCH 1/7] ptxdist: migrate 2020.03.0 -> 2020.04.0 with defaults Robert Schwebel
2020-04-26 22:20   ` Ahmad Fatoum
2020-04-26 22:27   ` [DistroKit] [PATCH] fixup! v7a: kernel: configure for MC-1 Ahmad Fatoum
2020-04-27  5:47     ` Robert Schwebel
2020-04-27  7:26       ` Ahmad Fatoum
2020-04-27  7:40         ` Robert Schwebel
2020-04-26 22:28   ` [DistroKit] [PATCH] fixup! v7a: barebox: add support for Linux Automation MC-1 Ahmad Fatoum
2020-04-27  5:46     ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200424171726.8330-7-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox