0022-chrome-installer-add-riscv64-as-one-of-the-target-ar.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From ded0b5e0b64f84678e9c30741653c8914823cced Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Fri, 17 Jun 2022 00:29:10 +0000
  4. Subject: [PATCH] chrome: installer: add riscv64 as one of the target arch
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. chrome/installer/linux/BUILD.gn | 6 ++++++
  8. 1 file changed, 6 insertions(+)
  9. diff --git a/chrome/installer/linux/BUILD.gn b/chrome/installer/linux/BUILD.gn
  10. index 6623fff2ba8a..104b8b5bb135 100644
  11. --- a/chrome/installer/linux/BUILD.gn
  12. +++ b/chrome/installer/linux/BUILD.gn
  13. @@ -477,6 +477,8 @@ template("linux_package") {
  14. deb_arch = "mipsel"
  15. } else if (current_cpu == "mips64el") {
  16. deb_arch = "mips64el"
  17. + } else if (current_cpu == "riscv64") {
  18. + deb_arch = "riscv64"
  19. } else {
  20. assert(false, "Linux installer not configured for this architecture.")
  21. }
  22. @@ -526,6 +528,8 @@ template("linux_package") {
  23. rpm_arch = "mipsel"
  24. } else if (current_cpu == "mips64el") {
  25. rpm_arch = "mips64el"
  26. + } else if (current_cpu == "riscv64") {
  27. + rpm_arch = "riscv64"
  28. } else {
  29. assert(false, "Linux installer not configured for this architecture.")
  30. }
  31. @@ -579,6 +583,8 @@ template("linux_package") {
  32. snap_arch = "armhf"
  33. } else if (current_cpu == "arm64") {
  34. snap_arch = "arm64"
  35. + } else if (current_cpu == "riscv64") {
  36. + snap_arch = "riscv64"
  37. } else {
  38. assert(false, "Linux installer not configured for this architecture.")
  39. }
  40. --
  41. 2.25.1