gnu: Add basic support for riscv64-linux-gnu targets.
* gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add "riscv64-linux". * gnu/packages/linux.scm (system->linux-architecture): Add "riscv" prefix. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
4f963be052
commit
7180dd6716
|
@ -177,6 +177,7 @@ return value is ignored."
|
||||||
((string=? system "powerpc64le-linux") "/lib/ld64.so.2")
|
((string=? system "powerpc64le-linux") "/lib/ld64.so.2")
|
||||||
((string=? system "alpha-linux") "/lib/ld-linux.so.2")
|
((string=? system "alpha-linux") "/lib/ld-linux.so.2")
|
||||||
((string=? system "s390x-linux") "/lib/ld64.so.1")
|
((string=? system "s390x-linux") "/lib/ld64.so.1")
|
||||||
|
((string=? system "riscv64-linux") "/lib/ld-linux-riscv64-lp64d.so.1")
|
||||||
|
|
||||||
;; XXX: This one is used bare-bones, without a libc, so add a case
|
;; XXX: This one is used bare-bones, without a libc, so add a case
|
||||||
;; here just so we can keep going.
|
;; here just so we can keep going.
|
||||||
|
|
|
@ -144,6 +144,7 @@
|
||||||
((string-prefix? "alpha" arch) "alpha")
|
((string-prefix? "alpha" arch) "alpha")
|
||||||
((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc64le"
|
((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc64le"
|
||||||
((string-prefix? "s390" arch) "s390")
|
((string-prefix? "s390" arch) "s390")
|
||||||
|
((string-prefix? "riscv" arch) "riscv")
|
||||||
(else arch))))
|
(else arch))))
|
||||||
|
|
||||||
(define-public (system->defconfig system)
|
(define-public (system->defconfig system)
|
||||||
|
|
Loading…
Reference in New Issue