From: Roland Hieber <rhi@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well
Date: Tue, 29 Sep 2020 12:40:38 +0200 [thread overview]
Message-ID: <20200929104038.c2xtx2ggso3nnfyq@pengutronix.de> (raw)
In-Reply-To: <20200929060236.17471-6-a.fatoum@pengutronix.de>
On Tue, Sep 29, 2020 at 08:02:36AM +0200, Ahmad Fatoum wrote:
> Add the same bit of boilerplate we added for the EK1 to get an image
> generated for the giant board as well.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v7a/platformconfig | 2 ++
> .../platforms/blspec-sama5d27-giantboard.in | 5 +++
> .../platforms/image-sama5d27-giantboard.in | 11 ++++++
> .../loader/entries/sama5d27-giantboard.conf | 6 ++++
> .../rules/blspec-sama5d27-giantboard.make | 36 +++++++++++++++++++
> .../rules/image-sama5d27-giantboard.make | 36 +++++++++++++++++++
> 6 files changed, 96 insertions(+)
> create mode 100644 configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> create mode 100644 configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> create mode 100644 configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> create mode 100644 configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
> create mode 100644 configs/platform-v7a/rules/image-sama5d27-giantboard.make
Could you also please add at least a minimal doc snippet in
doc/hardware.rst?
- Roland
>
> diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
> index e6034c9a999c..a06231d0b175 100644
> --- a/configs/platform-v7a/platformconfig
> +++ b/configs/platform-v7a/platformconfig
> @@ -217,6 +217,7 @@ PTXCONF_BLSPEC_RIOTBOARD=y
> PTXCONF_BLSPEC_RPI2=y
> PTXCONF_BLSPEC_RPI3=y
> PTXCONF_BLSPEC_SABRELITE=y
> +PTXCONF_BLSPEC_SAMA5D27_GIANTBOARD=y
> PTXCONF_BLSPEC_SAMA5D27_SOM1_EK=y
> PTXCONF_BLSPEC_STM32MP157C_DK2=y
> PTXCONF_BLSPEC_UDOO_NEO=y
> @@ -265,6 +266,7 @@ PTXCONF_IMAGE_ROOT_TGZ_LABEL=""
> PTXCONF_IMAGE_RPI2=y
> PTXCONF_IMAGE_RPI3=y
> PTXCONF_IMAGE_SABRELITE=y
> +PTXCONF_IMAGE_SAMA5D27_GIANTBOARD=y
> PTXCONF_IMAGE_SAMA5D27_SOM1_EK=y
> PTXCONF_IMAGE_STM32MP157C_DK2=y
> PTXCONF_IMAGE_UDOO_NEO=y
> diff --git a/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> new file mode 100644
> index 000000000000..9ed66c0ce77c
> --- /dev/null
> +++ b/configs/platform-v7a/platforms/blspec-sama5d27-giantboard.in
> @@ -0,0 +1,5 @@
> +## SECTION=blspec
> +
> +config BLSPEC_SAMA5D27_GIANTBOARD
> + tristate
> + prompt "/loader/entries/sama5d27-giantboard.conf bootloader spec entry"
> diff --git a/configs/platform-v7a/platforms/image-sama5d27-giantboard.in b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> new file mode 100644
> index 000000000000..cff29c700bcd
> --- /dev/null
> +++ b/configs/platform-v7a/platforms/image-sama5d27-giantboard.in
> @@ -0,0 +1,11 @@
> +## SECTION=image
> +
> +config IMAGE_SAMA5D27_GIANTBOARD
> + tristate
> + select HOST_GENIMAGE
> + select IMAGE_ROOT_EXT
> + select HOST_DOSFSTOOLS
> + select BAREBOX_AT91
> + prompt "Generate images/sama5d27-giantboard.hdimg"
> + help
> + Includes DistroKit support for the Groboards sama5d27-based Giantboard
> diff --git a/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> new file mode 100644
> index 000000000000..636e24195f98
> --- /dev/null
> +++ b/configs/platform-v7a/projectroot/loader/entries/sama5d27-giantboard.conf
> @@ -0,0 +1,6 @@
> +title PTXdist - Pengutronix-DistroKit
> +version @VERSION@
> +options rootwait
> +linux /boot/zImage
> +devicetree /boot/at91-sama5d27_giantboard.dtb
> +linux-appendroot true
> diff --git a/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.make
> new file mode 100644
> index 000000000000..d944d912f5d6
> --- /dev/null
> +++ b/configs/platform-v7a/rules/blspec-sama5d27-giantboard.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_SAMA5D27_GIANTBOARD) += blspec-sama5d27-giantboard
> +
> +BLSPEC_SAMA5D27_GIANTBOARD_VERSION := 5.8
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/blspec-sama5d27-giantboard.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, blspec-sama5d27-giantboard)
> + @$(call install_fixup,blspec-sama5d27-giantboard,PRIORITY,optional)
> + @$(call install_fixup,blspec-sama5d27-giantboard,SECTION,base)
> + @$(call install_fixup,blspec-sama5d27-giantboard,AUTHOR,"Ahmad Fatoum <afa@pengutronix.de>")
> + @$(call install_fixup,blspec-sama5d27-giantboard,DESCRIPTION,missing)
> +
> + @$(call install_alternative, blspec-sama5d27-giantboard, 0, 0, 0644, \
> + /loader/entries/sama5d27-giantboard.conf)
> +
> + @$(call install_finish,blspec-sama5d27-giantboard)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> diff --git a/configs/platform-v7a/rules/image-sama5d27-giantboard.make b/configs/platform-v7a/rules/image-sama5d27-giantboard.make
> new file mode 100644
> index 000000000000..cd7f619d02e6
> --- /dev/null
> +++ b/configs/platform-v7a/rules/image-sama5d27-giantboard.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
> +#
> +IMAGE_PACKAGES-$(PTXCONF_IMAGE_SAMA5D27_GIANTBOARD) += image-sama5d27-giantboard
> +
> +#
> +# Paths and names
> +#
> +IMAGE_SAMA5D27_GIANTBOARD := image-sama5d27-giantboard
> +IMAGE_SAMA5D27_GIANTBOARD_DIR := $(BUILDDIR)/$(IMAGE_SAMA5D27_GIANTBOARD)
> +IMAGE_SAMA5D27_GIANTBOARD_IMAGE := $(IMAGEDIR)/sama5d27-giantboard.hdimg
> +IMAGE_SAMA5D27_GIANTBOARD_FILES := $(IMAGEDIR)/root.tgz
> +IMAGE_SAMA5D27_GIANTBOARD_CONFIG := at91-sd.config
> +
> +# ----------------------------------------------------------------------------
> +# Image
> +# ----------------------------------------------------------------------------
> +
> +IMAGE_SAMA5D27_GIANTBOARD_ENV := \
> + FSBL=barebox-groboards-sama5d27-giantboard-xload-mmc.img \
> + SSBL=barebox-groboards-sama5d27-giantboard.img
> +
> +$(IMAGE_SAMA5D27_GIANTBOARD_IMAGE):
> + @$(call targetinfo)
> + @$(call image/genimage, IMAGE_SAMA5D27_GIANTBOARD)
> + @$(call finish)
> +
> +# vim: syntax=make
> --
> 2.28.0
>
>
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
>
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
next prev parent reply other threads:[~2020-09-29 10:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-29 6:02 [DistroKit] [PATCH 1/6] v7a: barebox: version bump v2020.08.1 → v2020.09.0 Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 2/6] v7a: barebox: add new rule for sama5d2 support Ahmad Fatoum
2020-09-29 10:33 ` Roland Hieber
2020-09-29 6:02 ` [DistroKit] [PATCH 3/6] v7a: kernel: extend " Ahmad Fatoum
2020-09-29 10:36 ` Roland Hieber
2020-09-29 13:29 ` Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 4/6] v7a: generate image for sama5d27 SOM1 Evaluation Kit Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 5/6] v7a: at91: add sama5d2-based giant board device tree Ahmad Fatoum
2020-09-29 6:02 ` [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well Ahmad Fatoum
2020-09-29 10:40 ` Roland Hieber [this message]
2020-09-29 13:39 ` [DistroKit] [PATCH] doc: document the new SAMA5D2 boards Ahmad Fatoum
2020-09-30 9:30 ` Roland Hieber
2020-10-11 22:38 ` Roland Hieber
2020-10-11 22:53 ` Ahmad Fatoum
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=20200929104038.c2xtx2ggso3nnfyq@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=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