lxbuildenv: riscv: also allow riscv32 toolchain

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-02-25 16:25:16 +08:00
parent d42418d62a
commit 5fbd0fc667

View File

@ -170,7 +170,15 @@ def check_make(args):
return check_cmd(args, "make", "GNU Make") return check_cmd(args, "make", "GNU Make")
def check_riscv(args): def check_riscv(args):
return check_cmd(args, "riscv64-unknown-elf-gcc", "riscv toolchain", "download it from https://www.sifive.com/products/tools/") riscv64 = check_cmd(args, "riscv64-unknown-elf-gcc", "riscv toolchain", "download it from https://www.sifive.com/products/tools/")
if riscv64[0] == True:
return riscv64
riscv32 = check_cmd(args, "riscv32-unknown-elf-gcc", "riscv toolchain", "download it from https://www.sifive.com/products/tools/")
if riscv32[0] == True:
return riscv32
return riscv64
def check_yosys(args): def check_yosys(args):
return check_cmd(args, "yosys") return check_cmd(args, "yosys")