From 0456de50aa766c8e4cf731605c6819a7e5cf091d Mon Sep 17 00:00:00 2001 From: Benjamin Henrion Date: Fri, 12 Mar 2021 20:13:23 +0100 Subject: [PATCH] Add support for xcompiler on Alpine 3.13 Problem: xcompiler on Alpine 3.13 was not found Solution is to add "riscv-none-elf-gcc": 1. Add Edge to your repositories: $ echo -e "http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttp://dl-cdn.alpine linux.org/alpine/edge/community" >> /etc/apk/repositories $ apk update $ apk add gcc-riscv-none-elf 2. The xcompiler should be found at: $ which riscv-none-elf-gcc /usr/bin/riscv-none-elf-gcc --- litex/soc/cores/cpu/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/soc/cores/cpu/__init__.py b/litex/soc/cores/cpu/__init__.py index 12da30097..f2080f18c 100644 --- a/litex/soc/cores/cpu/__init__.py +++ b/litex/soc/cores/cpu/__init__.py @@ -44,6 +44,7 @@ CPU_GCC_TRIPLE_RISCV32 = ( "riscv64-elf", "riscv32-elf", "riscv-none-embed", + "riscv-none-elf", "riscv64-linux", "riscv64-linux-gnu", "riscv-sifive-elf",