From: Heinrich Schuchardt Date: Mon, 3 Oct 2022 16:07:53 +0000 (+0200) Subject: buildman: differentiate between riscv32, riscv64 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=3672ed712774474739cacbd55a50175c5e8cd8a3;p=u-boot.git buildman: differentiate between riscv32, riscv64 riscv32 needs a different toolchain than riscv64 Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass Reviewed-by: Rick Chen --- diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 8a0971aa40..cdc4d9ffd2 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