diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-03-08 16:10:08 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-03-09 15:10:16 +0200 |
commit | e22a6ed8f82eb094242a3c4c723f7ab7635a4976 (patch) | |
tree | 132e875e16ac4146ad8715ffb7233f5bb700b3f4 /gnu/packages/firmware.scm | |
parent | 7b1dd1e9eae20d7df5f1bcde6f7bb4906fc7ef9f (diff) | |
download | guix-e22a6ed8f82eb094242a3c4c723f7ab7635a4976.tar.gz |
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.
Diffstat (limited to 'gnu/packages/firmware.scm')
-rw-r--r-- | gnu/packages/firmware.scm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 873ad02ae1..956ece5d6d 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -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) |