mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: make-openbios-package: Enable building from aarch64, riscv64.
* gnu/packages/firmware.scm (make-openbios-package)[source]: Add patch to correctly detect aarch64 and riscv64 build hosts. (openbios-qemu-ppc)[arguments]: Remove aarch64 workaround for #:system. * gnu/packages/patches/openbios-aarch64-riscv64-support.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
This commit is contained in:
parent
7b1dd1e9ea
commit
e22a6ed8f8
3 changed files with 20 additions and 6 deletions
|
@ -410,7 +410,8 @@ utilites used to process FCODE, OpenFirmware's byte code, consisting of:
|
|||
(file-name (git-file-name "openbios" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1xp1b6xgx40i0j3a5y3id0d1p8vdvapai8szganxg3zrvj53fh0n"))))
|
||||
"1xp1b6xgx40i0j3a5y3id0d1p8vdvapai8szganxg3zrvj53fh0n"))
|
||||
(patches (search-patches "openbios-aarch64-riscv64-support.patch"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f ;no tests
|
||||
|
@ -457,11 +458,6 @@ provide OpenFirmware functionality on top of an already running system.")
|
|||
(inherit base)
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:system system (%current-system))
|
||||
(if (string-prefix? "aarch64-linux" (or (%current-system)
|
||||
(%current-target-system)))
|
||||
"armhf-linux"
|
||||
system))
|
||||
;; No need to cross-compile, package produces reproducible firmware.
|
||||
((#:target _ #f) #f)
|
||||
((#:phases phases)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue