[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets

From: Carl Dong
Subject: [bug#35966] [PATCH] gnu: Add basic support for riscv64-linux-gnu targets.
Date: Tue, 28 May 2019 17:31:32 +0000

From: Carl Dong <address@hidden>

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
* gnu/packages/linux.scm (system->linux-architecture): Add "riscv"
 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/")
         ((string=? system "alpha-linux") "/lib/")
         ((string=? system "s390x-linux") "/lib/")
+        ((string=? system "riscv64-linux") "/lib/")
         ;; 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]