guix: add riscv64 support
* guix/git/mes.scm (mes): Add riscv64-linux to supported systems and add riscv64 cross-compiler toolchain
This commit is contained in:
parent
4dcedfdb8e
commit
af4fabcd64
|
@ -198,7 +198,8 @@ extensive examples, including parsers for the Javascript and C99 languages.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 #!mes!# "0vp8v88zszh1imm3dvdfi3m8cywshdj7xcrsq4cgmss69s2y1nkx"))))
|
(base32 #!mes!# "0vp8v88zszh1imm3dvdfi3m8cywshdj7xcrsq4cgmss69s2y1nkx"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(supported-systems '("aarch64-linux" "armhf-linux" "i686-linux" "x86_64-linux"))
|
(supported-systems '("aarch64-linux" "armhf-linux" "i686-linux"
|
||||||
|
"x86_64-linux" "riscv64-linux"))
|
||||||
(propagated-inputs (list mescc-tools nyacc))
|
(propagated-inputs (list mescc-tools nyacc))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(append
|
(append
|
||||||
|
@ -206,6 +207,11 @@ extensive examples, including parsers for the Javascript and C99 languages.")
|
||||||
(let ((target-system (or (%current-target-system)
|
(let ((target-system (or (%current-target-system)
|
||||||
(%current-system))))
|
(%current-system))))
|
||||||
(cond
|
(cond
|
||||||
|
((string-prefix? "riscv64-linux" target-system)
|
||||||
|
;; Use cross-compiler rather than #:system "i686-linux" to get
|
||||||
|
;; MesCC 64 bit .go files installed ready for use with Guile.
|
||||||
|
(list (cross-binutils "riscv64-linux-gnu")
|
||||||
|
(cross-gcc "riscv64-linux-gnu")))
|
||||||
((string-prefix? "x86_64-linux" target-system)
|
((string-prefix? "x86_64-linux" target-system)
|
||||||
;; Use cross-compiler rather than #:system "i686-linux" to get
|
;; Use cross-compiler rather than #:system "i686-linux" to get
|
||||||
;; MesCC 64 bit .go files installed ready for use with Guile.
|
;; MesCC 64 bit .go files installed ready for use with Guile.
|
||||||
|
|
Loading…
Reference in New Issue