0004-module-system-base-target.scm-support-riscv32.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 6142350d7c0562b0525462abdd41309ae0faa2eb Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Fri, 6 Aug 2021 19:49:37 +0200
  4. Subject: [PATCH] module/system/base/target.scm: support riscv32
  5. Fix the following build failure on riscv32:
  6. system/base/target.scm:132:16: In procedure triplet-pointer-size:
  7. unknown CPU word size "riscv32"
  8. Fixes:
  9. - http://autobuild.buildroot.org/results/6705630c1484239ec8b73d57ebc2e2570fbfc8f8
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. ---
  12. module/system/base/target.scm | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/module/system/base/target.scm b/module/system/base/target.scm
  15. index 2088cd866..dba46664d 100644
  16. --- a/module/system/base/target.scm
  17. +++ b/module/system/base/target.scm
  18. @@ -116,6 +116,7 @@
  19. ((string-match "^x86_64-.*-gnux32" triplet) 4) ; x32
  20. + ((string-match "32$" cpu) 4)
  21. ((string-match "64$" cpu) 8)
  22. ((string-match "64_?[lbe][lbe]$" cpu) 8)
  23. ((member cpu '("sparc" "powerpc" "mips" "mipsel" "nios2" "m68k" "sh3" "sh4")) 4)
  24. --
  25. 2.30.2