Compare commits

..

No commits in common. "1b1a288ef6c3961e3fa3ae865c766ea1614f63dd" and "147349868d5cf4153f9a7d7361689ff1416bd227" have entirely different histories.

2 changed files with 2 additions and 13 deletions

View file

@ -32,14 +32,8 @@ git submodule update --init --recursive
mkdir ./build && cd ./build
# Create needed dir for the output.
mkdir /usr/local/riscv && chmod -R 0775 /usr/local/riscv
# Setup to build newlib for 32bit embedded and compressed cpus.
./configure --prefix=/usr/local/riscv --with-arch=rv32ec \
--with-arch=rv32ec \
--with-abi=ilp32e \
--with-multilib
# Setup to build newlib.
./configure --prefix=/usr/local/
make -j4 newlib
# Some Example options below.

View file

@ -41,11 +41,6 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
message("OS:: LINUX")
set(NEWLIB /opt/riscv/riscv32-unknown-elf/include)
set(CMAKE_C_COMPILER riscv32-unknown-elf-gcc)
set(CMAKE_CXX_COMPILER riscv32-unknown-elf-g++)
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT GNU)
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT GNU)
else()
message("OS:: UNKNOWN?")
message("Please add your OS details to the toolchain file.")