From: Vagrant Cascadian <vagrant@debian.org>
To: Herman Rimm <herman@rimm.ee>, 74849@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#74849] [PATCH v2 2/6] gnu: arm-trusted-firmware: Reformat.
Date: Thu, 19 Dec 2024 15:34:23 -0800 [thread overview]
Message-ID: <87o717uu0w.fsf@contorta> (raw)
In-Reply-To: <823cb78aa5cabca5aac82a51ec77ac5224ba7e9c.1734645720.git.herman@rimm.ee>
[-- Attachment #1: Type: text/plain, Size: 6477 bytes --]
On 2024-12-19, Herman Rimm wrote:
> * gnu/packages/firmware.scm (arm-trusted-firmware)[source]: Use modules.
What is this referring to? What modules that were not used before?
> [synopsis]: Mention supported architectures.
> [description]: Fix "ARMv7A" typo. Remove newline.
These are good, thanks!
What I do not see mentioned is that it reworks how "native-build?" is
used a bit. Could that be split in a separate patch?
live well,
vagrant
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2024-12-19 23:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 12:23 [bug#74849] [PATCH 0/6] Update ARM Trusted Firmware Herman Rimm via Guix-patches via
2024-12-13 12:25 ` [bug#74849] [PATCH 1/6] gnu: arm-trusted-firmware-rk3399: Reformat Herman Rimm via Guix-patches via
2024-12-13 12:25 ` [bug#74849] [PATCH 2/6] gnu: arm-trusted-firmware: Reformat Herman Rimm via Guix-patches via
2024-12-13 12:25 ` [bug#74849] [PATCH 3/6] import: utils: Move guix-name to (guix utils) Herman Rimm via Guix-patches via
2024-12-17 13:52 ` Ludovic Courtès
2024-12-13 12:25 ` [bug#74849] [PATCH 4/6] gnu: make-arm-trusted-firmware: Use guix-name Herman Rimm via Guix-patches via
2024-12-15 8:04 ` Vagrant Cascadian
2024-12-15 23:05 ` Herman Rimm via Guix-patches via
2024-12-19 19:50 ` [bug#74849] fixed guix-name missing, but still fails on aarch64 Vagrant Cascadian
2024-12-13 12:25 ` [bug#74849] [PATCH 5/6] gnu: make-arm-trusted-firmware: Update to 2.12 Herman Rimm via Guix-patches via
2024-12-13 12:25 ` [bug#74849] [PATCH 6/6] gnu: arm-trusted-firmware-imx8mq: Fix build Herman Rimm via Guix-patches via
2024-12-15 8:36 ` [bug#74849] [PATCH 0/6] Update ARM Trusted Firmware Vagrant Cascadian
2024-12-19 22:10 ` [bug#74849] [PATCH v2 " Herman Rimm via Guix-patches via
2024-12-19 22:10 ` [bug#74849] [PATCH v2 1/6] gnu: arm-trusted-firmware-rk3399: Reformat Herman Rimm via Guix-patches via
2024-12-19 22:10 ` [bug#74849] [PATCH v2 2/6] gnu: arm-trusted-firmware: Reformat Herman Rimm via Guix-patches via
2024-12-19 23:34 ` Vagrant Cascadian [this message]
2024-12-19 22:10 ` [bug#74849] [PATCH v2 3/6] import: utils: Move guix-name to (guix utils) Herman Rimm via Guix-patches via
2024-12-19 22:10 ` [bug#74849] [PATCH v2 4/6] gnu: make-arm-trusted-firmware: Use guix-name Herman Rimm via Guix-patches via
2024-12-19 22:10 ` [bug#74849] [PATCH v2 5/6] gnu: make-arm-trusted-firmware: Update to 2.12 Herman Rimm via Guix-patches via
2024-12-19 22:10 ` [bug#74849] [PATCH v2 6/6] gnu: arm-trusted-firmware-imx8mq: Fix build Herman Rimm via Guix-patches via
2024-12-19 23:18 ` [bug#74849] [PATCH v2 0/6] Update ARM Trusted Firmware Vagrant Cascadian
2024-12-20 0:22 ` bug#74849: " Vagrant Cascadian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o717uu0w.fsf@contorta \
--to=vagrant@debian.org \
--cc=74849@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
--cc=herman@rimm.ee \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).