aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHeinrich Schuchardt2022-10-03 18:07:53 +0200
committerTom Rini2022-10-07 08:42:51 -0400
commit3672ed712774474739cacbd55a50175c5e8cd8a3 (patch)
tree5ce1404d994e56da86a853256b04504cab913f07 /tools
parente2ce13c4a79e1f3e65bc2389fee335c030ca314a (diff)
buildman: differentiate between riscv32, riscv64
riscv32 needs a different toolchain than riscv64 Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/buildman/boards.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py
index 8a0971aa407..cdc4d9ffd27 100644
--- a/tools/buildman/boards.py
+++ b/tools/buildman/boards.py
@@ -263,6 +263,17 @@ class KconfigScanner:
if params['arch'] == 'arm' and params['cpu'] == 'armv8':
params['arch'] = 'aarch64'
+ # fix-up for riscv
+ if params['arch'] == 'riscv':
+ try:
+ value = self._conf.syms.get('ARCH_RV32I').str_value
+ except:
+ value = ''
+ if value == 'y':
+ params['arch'] = 'riscv32'
+ else:
+ params['arch'] = 'riscv64'
+
return params