From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 25 Apr 2024 10:03:22 +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 1rzu4g-00GKGj-0n for lore@lore.pengutronix.de; Thu, 25 Apr 2024 10:03:22 +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 1rzu4f-0001bY-43; Thu, 25 Apr 2024 10:03:21 +0200 Received: from mail.thorsis.com ([217.92.40.78]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rzu4Y-0001B3-FC for distrokit@pengutronix.de; Thu, 25 Apr 2024 10:03:19 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 087F3148DA11 for ; Thu, 25 Apr 2024 10:03:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1714032191; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding:in-reply-to:references; bh=oRFwEz+MIbcQyrJxFxN2EpoX8YZvwDz3mzGsEFQwPW4=; b=EOluPVhkGUUo6B72tq55LI1HgP9dy9LPEcZnDPCisRy9wXB7USB8FjhDgNgkrsJNPYoHHX psVcCc06bfTnyazQ+pkNlcDMXN+fQU2/X9xVUz6Zdm04MzAe+a94BavhJ9sP0kRTOPq1yP I/fqc3CaLWbD00DGL/UQnHCTaoF0IRPOAkkxPrhJDV5WIJ9Wb+cmZx56YKffr4bZHW1VXA 16desJWo3faUIJNsoiVEX0uFIMYBhCvTJs/gHMTFzrOYjOUdalSTJHVnzVTQF3lAPAxfUb Z6YvK9kCX4Q6SiAvTnOcwEKPivcyJJhIfnvxER1jUo1/COUFORh8gt7bkGJGIw== From: Alexander Dahl To: distrokit@pengutronix.de Date: Thu, 25 Apr 2024 10:03:02 +0200 Message-Id: <20240425080303.171897-10-ada@thorsis.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240425080303.171897-1-ada@thorsis.com> References: <20240425080303.171897-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [DistroKit] [PATCH 8/8] 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: , 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 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