From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CNkCMFuaZGfISAEAe85BDQ:P1 (envelope-from ) for ; Thu, 19 Dec 2024 22:12:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id CNkCMFuaZGfISAEAe85BDQ (envelope-from ) for ; Thu, 19 Dec 2024 23:12:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=b9Daphyo; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=AFFIsBvn; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734646363; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CU7IS1CHQYXz39CXMOKTfeoenWX7VRIJqI7SgXNxcIk=; b=LWbaxm+BW2VhLUtLcC/oalckkxaMGSOJTiTgpdggUVCbXmyI23LKR+kZ0NZnMVQ+d/4mMX aMB57jtp+UBCd0eh+9Pqndn05E8f6S43U8an56uNb6IIsZQ88uKhwxeibupoTDrnDuF4/H BeE1L0uBG6c1o4YaJzaAGFCeJ/vhYnU1T1ZV2haK/SACkP55RmOWh8BZoXzmckibqcFMXW HXxmgmw4lYobRQbrBTQrtcWf+BkjC/8COEvC4ApkBhIsn7wibMFjJSFMnEhJNMcBKwWA0E WA0kO33xjXTx+qERyQ4R7C/0jSYI6w0H//bI843iit93sfE5+F1Lm0cYilB0iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=b9Daphyo; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=AFFIsBvn; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734646363; a=rsa-sha256; cv=none; b=AA/OJ3fey58WxjJW1z5wvy+ywqjbIZBG5zKiavXxpFg9tPEHBXgemFM7Pd32tUys+7ZN23 lnMYTSfcjZqdMiznl4BguFTTOl98Zuk59I6trv4nYk2PaVGFGPse995Ux1k19+sjIk39Yh FRyat+cUsUKsafwzJtSIIJwj2KFWC5BYuRJxBU1+i7fTOigCR70b/tWi66mgEa34qJB128 wDWCrpL+rMIY8lZSIB9dvvKuTkFkEVJrcrMJPpAHetSo6sgkxfsj6hRI2vzRQ7oC9iXjYV gA+oywAJPHBB6nsq1GjpJDD61ahCvNljWtUv6KwlpQq+9QORe2Js81hJ3uTrTQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D81F7FAB1 for ; Thu, 19 Dec 2024 23:12:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOOkd-000338-HA; Thu, 19 Dec 2024 17:12:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOOkW-00031y-1f for guix-patches@gnu.org; Thu, 19 Dec 2024 17:12:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOOkV-0007px-2J for guix-patches@gnu.org; Thu, 19 Dec 2024 17:12:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=CU7IS1CHQYXz39CXMOKTfeoenWX7VRIJqI7SgXNxcIk=; b=b9Daphyon3AXAt3p8q2XHxXEpAAKJf0Lq1TN7civsvH3F9/tpLcMkIAZY6S36L2jW4DK9AejCmZ1qFA1CwJK8ssWaA4pFQm7uRXbae/1fo24NqSJGutzG6l1exTavuDAY+pNDKoghoG03Hxf1DUTSo6GRIk/rnm2FfBwb3m4DtkKM6UbPdF3vW/uhwbQVeFTSHzLIB9sYG+TRpA1E/by0ZxgsiZ6A1nUWUcQQafXvfeV801s8k6bo3VJqiZJwMkC8o6ov6KHpFC7VqwWR1iBo1ivibWd2Teg1gVMs4spj7WaZJ5H6llI9UtQUdYm7+r3TyBNzpTzazwtw4iwCFE2Ag==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOOkU-0007tC-M5; Thu, 19 Dec 2024 17:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74849] [PATCH v2 2/6] gnu: arm-trusted-firmware: Reformat. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Thu, 19 Dec 2024 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74849 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74849@debbugs.gnu.org Cc: Efraim Flashner , Vagrant Cascadian X-Debbugs-Original-Xcc: Efraim Flashner , Vagrant Cascadian Received: via spool by 74849-submit@debbugs.gnu.org id=B74849.173464630730254 (code B ref 74849); Thu, 19 Dec 2024 22:12:02 +0000 Received: (at 74849) by debbugs.gnu.org; 19 Dec 2024 22:11:47 +0000 Received: from localhost ([127.0.0.1]:40439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOOkE-0007rp-Lc for submit@debbugs.gnu.org; Thu, 19 Dec 2024 17:11:47 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:58395 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOOk7-0007qj-MZ for 74849@debbugs.gnu.org; Thu, 19 Dec 2024 17:11:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1734646284; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CU7IS1CHQYXz39CXMOKTfeoenWX7VRIJqI7SgXNxcIk=; b=AFFIsBvnzKdRVGWZdKBFGZcCWPUokBbd7kgJOQN36ylFjxK7+bV49g4FiTVrr/+Xsg+EJG Z1CWDz3W0vyzvC1I8z/QCbmKrf5tmuSMB92S7x0PB6s8qYud9atk8tXd2GeWUIRl1S5+bN bvJOTY4HKBKxKmgHj4fisryAR8mHCiNJD+4u48fOTaeNg4g8A8D87rrBRoAqdDkyzmE0hd kudjRIkDcnyvovMkRckt7WtWm/xgxXTSCxNJCSD2r+pqflTL4Ugr0nqe+MHEfh/fpcTsc5 /zaNTfVlVUMOqdQ53aVlW9U8EnMiaOMoE7FzCpxzXEpCLZt7fsy30A5GotEJLw== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 1fa918e7 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <74849@debbugs.gnu.org>; Thu, 19 Dec 2024 22:11:24 +0000 (UTC) Date: Thu, 19 Dec 2024 23:10:31 +0100 Message-ID: <823cb78aa5cabca5aac82a51ec77ac5224ba7e9c.1734645720.git.herman@rimm.ee> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.76 X-Spam-Score: 0.76 X-Migadu-Queue-Id: 9D81F7FAB1 X-TUID: SY75rUr+kHE/ * gnu/packages/firmware.scm (arm-trusted-firmware)[source]: Use modules. [synopsis]: Mention supported architectures. [description]: Fix "ARMv7A" typo. Remove newline. Change-Id: I52d1a02f27e1c8ebbe5b48ea9a69e4c008ff5b9c --- gnu/packages/firmware.scm | 104 ++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 55 deletions(-) diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 8b1873be38..758a10d7d2 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -1101,68 +1101,62 @@ (define-public ovmf (define* (make-arm-trusted-firmware platform #:key (triplet "aarch64-linux-gnu")) - (let ((native-build? (lambda () - ;; Note: %current-system is a *triplet*, unlike its - ;; name would suggest. - (or (not triplet) ;disable cross-compilation - (string=? (%current-system) - (gnu-triplet->nix-system triplet)))))) - (package - (name (string-append "arm-trusted-firmware-" platform)) - (version "2.9") - (source - (origin - (method git-fetch) - (uri (git-reference - ;; There are only GitHub generated release snapshots. - (url "https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/") - (commit (string-append "v" version)))) - (file-name (git-file-name "arm-trusted-firmware" version)) - (sha256 - (base32 - "16fjbn1zck0d8b554h8lk1svqqn0zlawvrlkjxry9l71s9h4vd0p")) - (snippet - #~(begin - (use-modules (guix build utils)) - ;; Remove binary blobs which do not contain source or proper - ;; license. + (define (native-build?) + "Return #t if the host and target platforms differ." + (or (not triplet) + ;;%current-system is a *triplet*, unlike its name would suggest. + (string=? (%current-system) (gnu-triplet->nix-system triplet)))) + (package + (name (string-append "arm-trusted-firmware-" platform)) + (version "2.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://git.trustedfirmware.org" + "/TF-A/trusted-firmware-a.git/")) + (commit (string-append "v" version)))) + (file-name (git-file-name "arm-trusted-firmware" version)) + (sha256 + (base32 "16fjbn1zck0d8b554h8lk1svqqn0zlawvrlkjxry9l71s9h4vd0p")) + (modules '((guix build utils))) + ;; Remove binary blobs: they don't reference a source or license. + (snippet #~(for-each delete-file (find-files "." "\\.bin$"))))) + (build-system gnu-build-system) + (arguments + (list + #:target (and (not (native-build?)) triplet) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'install + (lambda _ (for-each (lambda (file) - (delete-file file)) - (find-files "." "\\.bin$")))))) - (build-system gnu-build-system) - (arguments - (list - #:target (and (not (native-build?)) triplet) - #:phases - #~(modify-phases %standard-phases - (delete 'configure) ;no configure script - (replace 'install - (lambda _ - (for-each (lambda (file) - (install-file file #$output)) - (find-files "." "\\.(bin|elf)$"))))) - #:make-flags #~(list (string-append "PLAT=" #$platform) - #$@(if (not (native-build?)) - (list (string-append "CROSS_COMPILE=" triplet "-")) - '()) - "DEBUG=1") - #:tests? #f)) ;no test suite - (home-page "https://www.trustedfirmware.org/") - (synopsis "Implementation of \"secure world software\"") - (description - "ARM Trusted Firmware provides a reference implementation of secure world -software for ARMv7A and ARMv8-A, including a Secure Monitor executing at -@dfn{Exception Level 3} (EL3). It implements various ARM interface standards, -such as: + (install-file file #$output)) + (find-files "." "\\.(bin|elf)$"))))) + #:make-flags + #~(list (string-append "PLAT=" #$platform) + #$@(if (not (native-build?)) + (list (string-append "CROSS_COMPILE=" triplet "-")) + '()) + "DEBUG=1") + #:tests? #f)) ;no test suite + (home-page "https://www.trustedfirmware.org/") + (synopsis "Secure world software for ARMv7-A and ARMv8-A") + (description + "ARM Trusted Firmware provides a reference implementation of secure +world software for ARMv7-A and ARMv8-A, including a Secure Monitor +executing at @dfn{Exception Level 3} (EL3). It implements various ARM +interface standards, such as: @enumerate @item The Power State Coordination Interface (PSCI) @item Trusted Board Boot Requirements (TBBR, ARM DEN0006C-1) @item SMC Calling Convention @item System Control and Management Interface @item Software Delegated Exception Interface (SDEI) -@end enumerate\n") - (license (list license:bsd-3 - license:bsd-2))))) ; libfdt +@end enumerate") + (license (list license:bsd-3 + license:bsd-2)))) ; libfdt (define-public arm-trusted-firmware-sun50i-a64 (let ((base (make-arm-trusted-firmware "sun50i_a64"))) -- 2.45.2