From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Tue, 29 Sep 2020 12:40:38 +0200 From: Roland Hieber Message-ID: <20200929104038.c2xtx2ggso3nnfyq@pengutronix.de> References: <20200929060236.17471-1-a.fatoum@pengutronix.de> <20200929060236.17471-6-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200929060236.17471-6-a.fatoum@pengutronix.de> Subject: Re: [DistroKit] [PATCH 6/6] v7a: sama5d2: generate image for Groboard Giantboard as well List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: distrokit-bounces@pengutronix.de Sender: "DistroKit" To: Ahmad Fatoum Cc: distrokit@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 > --- > 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 > +# > +# 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 ") > + @$(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 > +# > +# 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