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

123456789101112131415161718192021222324252627282930313233343536
  1. From 5fd078486b29f19686fc9f4ae4e592ba81f4fc00 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Tue, 6 Sep 2022 03:42:38 -0400
  4. Subject: [PATCH 40/68] 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 cbcf0a3f0961..aaf1b21baf5f 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_bullseye_arm-sysroot"
  24. } else if (current_cpu == "arm64") {
  25. sysroot = "$target_sysroot_dir/debian_bullseye_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.30.2