diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-10-12 21:36:03 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2020-11-01 09:59:03 +0100 |
commit | 5d528ab4ee2cef3ea10788d4c8fca5adbd09959f (patch) | |
tree | 07d5ef18847165f02d1c57b709c7266831f381a0 /configs | |
parent | 89345d1944929d5e268eed15fde34702a7fdd9d1 (diff) | |
download | DistroKit-5d528ab4ee2cef3ea10788d4c8fca5adbd09959f.tar.gz DistroKit-5d528ab4ee2cef3ea10788d4c8fca5adbd09959f.tar.xz |
v7a: sama5d2: generate image for Groboard Giantboard as well
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>
Diffstat (limited to 'configs')
6 files changed, 96 insertions, 0 deletions
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig index b6d5233..61c1a34 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 0000000..9ed66c0 --- /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 0000000..cff29c7 --- /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 0000000..636e241 --- /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 0000000..d944d91 --- /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 0000000..cd7f619 --- /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 |