From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 27 May 2024 18:17:55 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBd2p-000ick-0N for lore@lore.pengutronix.de; Mon, 27 May 2024 18:17:55 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sBd2o-0003Ut-KG; Mon, 27 May 2024 18:17:54 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBd2m-0003Ty-KB; Mon, 27 May 2024 18:17:52 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sBd2m-003DKR-7t; Mon, 27 May 2024 18:17:52 +0200 Received: from rsc by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sBd2m-00HAC1-0Y; Mon, 27 May 2024 18:17:52 +0200 Date: Mon, 27 May 2024 18:17:52 +0200 From: Robert Schwebel To: Alexander Dahl Message-ID: References: <20240425080303.171897-1-ada@thorsis.com> <20240425080303.171897-11-ada@thorsis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425080303.171897-11-ada@thorsis.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [DistroKit] [PATCH 9/9] platform: v8a: firmware-sentinel: Add new package X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Applied to next. On Thu, Apr 25, 2024 at 10:03:03AM +0200, Alexander Dahl wrote: > U-Boot for i.MX93 on Ka-Ro QS93-5210 SoM requires this additional firmware. > > Signed-off-by: Alexander Dahl > --- > configs/platform-v8a/platformconfig | 1 + > .../platforms/firmware-sentinel.in | 5 ++ > .../platform-v8a/rules/firmware-sentinel.make | 69 +++++++++++++++++++ > 3 files changed, 75 insertions(+) > create mode 100644 configs/platform-v8a/platforms/firmware-sentinel.in > create mode 100644 configs/platform-v8a/rules/firmware-sentinel.make > > diff --git a/configs/platform-v8a/platformconfig b/configs/platform-v8a/platformconfig > index 342aa11..d7df8b8 100644 > --- a/configs/platform-v8a/platformconfig > +++ b/configs/platform-v8a/platformconfig > @@ -364,4 +364,5 @@ PTXCONF_FIRMWARE_ROCKCHIP=y > PTXCONF_FIRMWARE_ROCKCHIP_RK3568_SDRAM=y > PTXCONF_FIRMWARE_ROCKCHIP_RK356x_BL31=y > PTXCONF_FIRMWARE_ROCKCHIP_RK356x_BL32=y > +# PTXCONF_FIRMWARE_SENTINEL is not set > # end of non-free firmware blobs > diff --git a/configs/platform-v8a/platforms/firmware-sentinel.in b/configs/platform-v8a/platforms/firmware-sentinel.in > new file mode 100644 > index 0000000..9225969 > --- /dev/null > +++ b/configs/platform-v8a/platforms/firmware-sentinel.in > @@ -0,0 +1,5 @@ > +## SECTION=non_free_firmware > + > +menuconfig FIRMWARE_SENTINEL > + tristate > + prompt "firmware-sentinel " > diff --git a/configs/platform-v8a/rules/firmware-sentinel.make b/configs/platform-v8a/rules/firmware-sentinel.make > new file mode 100644 > index 0000000..855e58d > --- /dev/null > +++ b/configs/platform-v8a/rules/firmware-sentinel.make > @@ -0,0 +1,69 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2024 by Alexander Dahl > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_FIRMWARE_SENTINEL) += firmware-sentinel > + > +# > +# Paths and names > +# > +FIRMWARE_SENTINEL_VERSION := 0.11 > +FIRMWARE_SENTINEL_MD5 := 339011b6b199151d835c03089a3c2221 > +FIRMWARE_SENTINEL_SKIP := 47053 > +FIRMWARE_SENTINEL := firmware-sentinel-$(FIRMWARE_SENTINEL_VERSION) > +FIRMWARE_SENTINEL_SUFFIX := bin > +FIRMWARE_SENTINEL_URL := http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/$(FIRMWARE_SENTINEL).$(FIRMWARE_SENTINEL_SUFFIX) > +FIRMWARE_SENTINEL_SOURCE := $(SRCDIR)/$(FIRMWARE_SENTINEL).$(FIRMWARE_SENTINEL_SUFFIX) > +FIRMWARE_SENTINEL_DIR := $(BUILDDIR)/$(FIRMWARE_SENTINEL) > +FIRMWARE_SENTINEL_LICENSE := NXP-Software-License-Agreement > +FIRMWARE_SENTINEL_LICENSE_FILES := \ > + file://COPYING;md5=db4762b09b6bda63da103963e6e081de > + > +# ---------------------------------------------------------------------------- > +# Extract > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/firmware-sentinel.extract: > + @$(call targetinfo) > + @$(call clean, $(FIRMWARE_SENTINEL_DIR)) > + @mkdir -p "$(FIRMWARE_SENTINEL_DIR)" > + @dd if="$(FIRMWARE_SENTINEL_SOURCE)" bs=$(FIRMWARE_SENTINEL_SKIP) skip=1 \ > + | tar -xj --strip-components=2 -C "$(FIRMWARE_SENTINEL_DIR)" > + @$(call patchin, FIRMWARE_SENTINEL) > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +FIRMWARE_SENTINEL_CONF_TOOL := NO > + > +# ---------------------------------------------------------------------------- > +# Compile > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/firmware-sentinel.compile: > + @$(call targetinfo) > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/firmware-sentinel.install: > + @$(call targetinfo) > + > + @install -d -m755 $(FIRMWARE_SENTINEL_PKGDIR)/usr/lib/firmware > + @install -v -m644 $(FIRMWARE_SENTINEL_DIR)/mx93a1-ahab-container.img \ > + $(FIRMWARE_SENTINEL_PKGDIR)/usr/lib/firmware/ > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.39.2 > > > -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |