Conversation

Jarkko Sakkinen

#notetomyself: download and extract #riscv #toolchain:

echo elf glibc musl | xargs -n1 | xargs -I{} echo https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2022.08.25/riscv64-{}-ubuntu-20.04-nightly-2022.08.25-nightly.tar.gz | xargs curl -sSL | tar zx -i
1
1
2

Jarkko Sakkinen

Edited 1 year ago

for C++, #riscv collab #toolchain’s seem to be broken (or could be that I’m doing something wrong) so:

  1. For ELF (bare metal) and GLIBC targets I use whatever #ubuntu packages:

     sudo apt install {gcc,g++}-riscv64-linux-gnu \
                      linux-libc-dev-riscv64-cross

    CROSS_COMPILE is set to riscv64-linux-gnu-.

  2. For #musl I use #riscv collab provided toolchain

It is not perfect but it is definitely sustainable at least…

0
0
0