From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Ahmad Fatoum Date: Fri, 24 Apr 2020 19:17:26 +0200 Message-Id: <20200424171726.8330-7-a.fatoum@pengutronix.de> In-Reply-To: <20200424171726.8330-1-a.fatoum@pengutronix.de> References: <20200424171726.8330-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Subject: [DistroKit] [PATCH 7/7] v7a: generate image for Linux Automation MC-1 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: distrokit@pengutronix.de Cc: Ahmad Fatoum 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 --- 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 +# +# 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 ") + @$(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 +# +# 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