Skip to content

Commit ee4e068

Browse files
authored
Merge pull request #248 from maribu/riotbuild/riscv-toolchain
riotbuild: update RISC-V Toolchain
2 parents 02bda8f + a8b4dd6 commit ee4e068

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

riotbuild/Dockerfile

+11-11
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,20 @@ ENV MIPS_ELF_ROOT /opt/mips-mti-elf/${MIPS_VERSION}
165165
ENV PATH ${PATH}:${MIPS_ELF_ROOT}/bin
166166

167167
# Install RISC-V binary toolchain
168-
ARG RISCV_VERSION=10.2.0-1.2
168+
ARG RISCV_VERSION=13.2.0-2
169169
RUN mkdir -p /opt && \
170-
wget -q https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/download/v${RISCV_VERSION}/xpack-riscv-none-embed-gcc-${RISCV_VERSION}-linux-x64.tar.gz -O- \
170+
wget -q https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v${RISCV_VERSION}/xpack-riscv-none-elf-gcc-${RISCV_VERSION}-linux-x64.tar.gz -O- \
171171
| tar -C /opt -xz && \
172172
echo 'Removing documentation' >&2 && \
173-
rm -rf /opt/xpack-riscv-none-embed-gcc-${RISCV_VERSION}/share/doc && \
173+
rm -rf /opt/xpack-riscv-none-elf-gcc-${RISCV_VERSION}/share/doc && \
174174
echo 'Deduplicating binaries' >&2 && \
175-
cd /opt/xpack-riscv-none-embed-gcc-${RISCV_VERSION}/riscv-none-embed/bin && \
176-
for f in *; do test -f "../../bin/riscv-none-embed-$f" && \
177-
ln -f "../../bin/riscv-none-embed-$f" "$f"; \
175+
cd /opt/xpack-riscv-none-elf-gcc-${RISCV_VERSION}/riscv-none-elf/bin && \
176+
for f in *; do test -f "../../bin/riscv-none-elf-$f" && \
177+
ln -f "../../bin/riscv-none-elf-$f" "$f"; \
178178
done && \
179179
cd -
180180

181-
ENV PATH $PATH:/opt/xpack-riscv-none-embed-gcc-${RISCV_VERSION}/bin
181+
ENV PATH $PATH:/opt/xpack-riscv-none-elf-gcc-${RISCV_VERSION}/bin
182182

183183
# Install complete ESP8266 toolchain in /opt/esp (139 MB after cleanup)
184184
# remember https://github.com/RIOT-OS/RIOT/pull/10801 when updating
@@ -282,14 +282,14 @@ RUN echo 'Building and Installing PicoLIBC' >&2 && \
282282
tar -xf ${PICOLIBC_ARCHIVE} && \
283283
cd picolibc-${PICOLIBC_TAG}
284284

285-
COPY cross-riscv-none-embed.txt /usr/src/picolibc/picolibc-${PICOLIBC_TAG}/
285+
COPY cross-riscv-none-elf.txt /usr/src/picolibc/picolibc-${PICOLIBC_TAG}/
286286

287287
RUN cd /usr/src/picolibc/picolibc-${PICOLIBC_TAG} && \
288-
which riscv-none-embed-gcc && \
289-
ls -al /opt/xpack-riscv-none-embed-gcc-${RISCV_VERSION}/bin && \
288+
which riscv-none-elf-gcc && \
289+
ls -al /opt/xpack-riscv-none-elf-gcc-${RISCV_VERSION}/bin && \
290290
mkdir build-arm build-riscv build-esp32 && \
291291
cd build-riscv && \
292-
meson .. -Dtests=true -Dmultilib=false -Dincludedir=picolibc/riscv-none-embed/include -Dlibdir=picolibc/riscv-none-embed/lib --cross-file ../cross-riscv-none-embed.txt && \
292+
meson .. -Dtests=true -Dmultilib=false -Dincludedir=picolibc/riscv-none-elf/include -Dlibdir=picolibc/riscv-none-elf/lib --cross-file ../cross-riscv-none-elf.txt && \
293293
ninja && ninja install && \
294294
cd ../build-esp32 && \
295295
sh ../do-esp32-configure && \

riotbuild/cross-riscv-none-embed.txt riotbuild/cross-riscv-none-elf.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[binaries]
2-
c = 'riscv-none-embed-gcc'
3-
ar = 'riscv-none-embed-ar'
4-
as = 'riscv-none-embed-as'
5-
strip = 'riscv-none-embed-strip'
2+
c = 'riscv-none-elf-gcc'
3+
ar = 'riscv-none-elf-ar'
4+
as = 'riscv-none-elf-as'
5+
strip = 'riscv-none-elf-strip'
66
exe_wrapper = ['sh', '-c', 'test -z "$MESON_SOURCE_ROOT" || "$MESON_SOURCE_ROOT"/run-riscv "$@"', 'run-riscv']
77

88
[host_machine]

0 commit comments

Comments
 (0)