From 5d528ab4ee2cef3ea10788d4c8fca5adbd09959f Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Mon, 12 Oct 2020 21:36:03 +0200 Subject: 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 --- 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 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 +# +# 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 0000000..cd7f619 --- /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 -- cgit v1.2.3