GNU bug report logs - #77148
[PATCH 0/9] New firmware and updates

Previous Next

Package: guix-patches;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Fri, 21 Mar 2025 08:51:06 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 77148 <at> debbugs.gnu.org
Subject: [bug#77148] [PATCH 9/9] gnu: Add ovmf-loongarch64.
Date: Sun, 23 Mar 2025 17:23:22 +0200
[Message part 1 (text/plain, inline)]
On Sat, Mar 22, 2025 at 04:33:37PM +0900, Maxim Cournoyer wrote:
> Hello,
> 
> Efraim Flashner <efraim <at> flashner.co.il> writes:
> 
> > * gnu/packages/firmware.scm (ovmf-loongarch64): New variable.
> > (make-ovmf-firmware)[arguments]: Adjust the 'build phase to add a case
> > for loongarch64.
> >
> > Change-Id: Ibb916b50fd3dc7831ac895cb8b59695688750377
> > ---
> >  gnu/packages/firmware.scm | 21 +++++++++++++++++++++
> >  1 file changed, 21 insertions(+)
> >
> > diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
> > index fe2956fbfdf..6f784a281d3 100644
> > --- a/gnu/packages/firmware.scm
> > +++ b/gnu/packages/firmware.scm
> > @@ -1090,6 +1090,8 @@ (define* (make-ovmf-firmware arch)
> >                                  "ArmVirtPkg/ArmVirtQemu.dsc")
> >                                 ("riscv64"
> >                                  "OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc")
> > +                               ("loongarch64"
> > +                                "OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc")
> >                                 (_ #t)))))
> >              (add-before 'install 'install-efi-shell
> >                (lambda _
> > @@ -1247,6 +1249,25 @@ (define-public ovmf-riscv64
> >                        (install-file "RISCV_VIRT_CODE.fd" fmw)
> >                        (install-file "RISCV_VIRT_VARS.fd" fmw))))))))))))
> >  
> > +(define-public ovmf-loongarch64
> > +  (let ((base (make-ovmf-firmware "loongarch64")))
> > +    (package
> > +      (inherit base)
> > +      (arguments
> > +        (substitute-keyword-arguments (package-arguments base)
> > +          ((#:phases phases)
> > +           #~(modify-phases #$phases
> > +               (replace 'install
> > +                 (lambda _
> > +                   (let ((fmw (string-append #$output "/share/firmware")))
> > +                     (mkdir-p fmw)
> 
> Nitpick: fw is more commond than fwm as an abbrevation.
> 
> > +                     (with-directory-excursion "Build/LoongArchVirtQemu/RELEASE_GCC/FV"
> 
> Other nitpick: I'd break the directory part on a newline to fit under 80
> columns, per our code style guidelines.
> 
> Otherwise, my general comments elsewhere apply it too, but it LGTM
> otherwise.
> 
> I think we should add the QEMU firmware descriptors everywhere so that
> they'll be usable with the libvirt-configuration firmwares field I
> proposed in bug#77110.  Perhaps we can apply that one first to make this
> slightly easier (it provided some `ovmf-aux-file' procedure you'll
> probably want to use to locate the a locally kept .json QEMU firmware
> descriptor file).

Sounds good to me.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.