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