* [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets.
@ 2019-05-28 17:31 Carl Dong
2019-05-29 13:41 ` bug#35966: " Danny Milosavljevic
0 siblings, 1 reply; 2+ messages in thread
From: Carl Dong @ 2019-05-28 17:31 UTC (permalink / raw)
To: 35966; +Cc: Carl Dong
From: Carl Dong <accounts@carldong.me>
Aside from this patch, we also need 35888 and 35963 to satisfy riscv64's minimum
kernel header version requirements.
* gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add
"riscv64-linux".
* gnu/packages/linux.scm (system->linux-architecture): Add "riscv"
prefix.
---
gnu/packages/bootstrap.scm | 1 +
gnu/packages/linux.scm | 1 +
2 files changed, 2 insertions(+)
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
index a3ecbeb076..e8b2120551 100644
--- a/gnu/packages/bootstrap.scm
+++ b/gnu/packages/bootstrap.scm
@@ -177,6 +177,7 @@ return value is ignored."
((string=? system "powerpc64le-linux") "/lib/ld64.so.2")
((string=? system "alpha-linux") "/lib/ld-linux.so.2")
((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
;; here just so we can keep going.
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 67085f30f2..bc519409c0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -144,6 +144,7 @@
((string-prefix? "alpha" arch) "alpha")
((string-prefix? "powerpc" arch) "powerpc") ;including "powerpc64le"
((string-prefix? "s390" arch) "s390")
+ ((string-prefix? "riscv" arch) "riscv")
(else arch))))
(define-public (system->defconfig system)
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#35966: [PATCH] gnu: Add basic support for riscv64-linux-gnu targets.
2019-05-28 17:31 [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets Carl Dong
@ 2019-05-29 13:41 ` Danny Milosavljevic
0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2019-05-29 13:41 UTC (permalink / raw)
To: Carl Dong; +Cc: Carl Dong, 35966-done
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
Pushed to guix master as commit 7180dd671697e0215b140ebc0d36047b4b8375f2.
Thanks!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-29 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-28 17:31 [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets Carl Dong
2019-05-29 13:41 ` bug#35966: " Danny Milosavljevic
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).