There isn't really a big difference between IDF's toolchain and the one from Sifive, this is why we didn't add both. Are you having issues running the one from SiFive? The CROSSDEV variable will just have the name of the toolchain. If we want to add another toolchain we add another ifeq in riscv/rv32im/Toolchains.defs.
On Sat, Oct 16, 2021, 23:28 Tomasz CEDRO <to...@cedro.info> wrote: > On Sat, Oct 16, 2021 at 6:15 PM Tomasz CEDRO wrote: > > > > On Sat, Oct 16, 2021 at 6:11 PM Abdelatif Guettouche > > <abdelatif.guettou...@gmail.com> wrote: > > > > > > > I could not find detailed information on how to setup RISC-V > toolchain > > > except just using "generic toolchain": > > > > https://nuttx.apache.org/docs/latest/platforms/risc-v/esp32c3/index.html > > > > > > There is a link there to download the toolchain used, here: > > > > https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz > > > You can download the file, untar it and add the location to the PATH. > > > > Thanks Abdelatif :-) I am at the moment trying the ESP-IDF > > `idf_tools.py` on Linux as I am using them on FreeBSD with success. > > That should keep my work more consistent. It provides all compilers > > and OpenOCD to work with ESP32 chips. Will report back if that works > > :-) > > ESP-IDF Toolchain also does not work. > > Problem comes from hardcoding `riscv64-unknown-elf-` in `CROSSDEV`. > > On Linux I have 2 GNU RV Toolchains available. On FreeBSD I have 3. > None of them matches `iscv64-unknown-elf-`. > > Some sort of toolchain auto-detection needs to be implemented :-) > > https://github.com/apache/incubator-nuttx/issues/4674 > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >