Browse Source

build/config/sysroot.gni: add path to riscv64 sysroot

Upstream status: Inappropriate

We should use official release of Debian. Unless we have
a stable release for riscv64 in Debian, we should keep
this as internal only.

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 year ago
parent
commit
49119aae89
1 changed files with 4 additions and 1 deletions
  1. 4 1
      build/config/sysroot.gni

+ 4 - 1
build/config/sysroot.gni

@@ -23,7 +23,8 @@ declare_args() {
   # is empty, default sysroot is calculated.
   use_sysroot = current_cpu == "x86" || current_cpu == "x64" ||
                 current_cpu == "arm" || current_cpu == "arm64" ||
-                current_cpu == "mipsel" || current_cpu == "mips64el"
+                current_cpu == "mipsel" || current_cpu == "mips64el" ||
+                current_cpu == "riscv64"
 }
 
 if (sysroot == "") {
@@ -50,6 +51,8 @@ if (sysroot == "") {
       sysroot = "$target_sysroot_dir/debian_bullseye_arm-sysroot"
     } else if (current_cpu == "arm64") {
       sysroot = "$target_sysroot_dir/debian_bullseye_arm64-sysroot"
+    } else if (current_cpu == "riscv64") {
+      sysroot = "$target_sysroot_dir/debian_sid_riscv64-sysroot"
     } else {
       assert(false, "No linux sysroot for cpu: $target_cpu")
     }