0038-add-path-to-riscv64-sysroot.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From cb072c1ca121c85743f0623e7d4f30cd02d2663c Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Wed, 22 Jun 2022 08:05:49 +0000
  4. Subject: [PATCH 38/51] add path to riscv64 sysroot
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. build/config/sysroot.gni | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
  10. index 18d2d573627c..4f8fa88a50b8 100644
  11. --- a/build/config/sysroot.gni
  12. +++ b/build/config/sysroot.gni
  13. @@ -23,7 +23,8 @@ declare_args() {
  14. # is empty, default sysroot is calculated.
  15. use_sysroot = current_cpu == "x86" || current_cpu == "x64" ||
  16. current_cpu == "arm" || current_cpu == "arm64" ||
  17. - current_cpu == "mipsel" || current_cpu == "mips64el"
  18. + current_cpu == "mipsel" || current_cpu == "mips64el" ||
  19. + current_cpu == "riscv64"
  20. }
  21. if (sysroot == "") {
  22. @@ -50,6 +51,8 @@ if (sysroot == "") {
  23. sysroot = "$target_sysroot_dir/debian_sid_arm-sysroot"
  24. } else if (current_cpu == "arm64") {
  25. sysroot = "$target_sysroot_dir/debian_sid_arm64-sysroot"
  26. + } else if (current_cpu == "riscv64") {
  27. + sysroot = "$target_sysroot_dir/debian_sid_riscv64-sysroot"
  28. } else {
  29. assert(false, "No linux sysroot for cpu: $target_cpu")
  30. }
  31. --
  32. 2.25.1