Compare commits

...

2 Commits

Author SHA1 Message Date
e826f9ff88 Update toolchain 2023-01-30 02:23:11 -03:00
bc4167b7ed Keep alive container 2023-01-30 02:22:59 -03:00
2 changed files with 6 additions and 9 deletions

View File

@ -7,9 +7,10 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/reposit
&& apk update \
&& apk add wget git make cmake gcc-riscv-none-elf newlib-riscv-none-elf verilator vim
# Copy RISC-V repository into container
COPY . /root
# Initialize the enviroment
# Clone the repository
WORKDIR /root
CMD ["/bin/sh"]
RUN git clone https://git.1159.cl/Mario1159/RVSCC.git
# Initialize the enviroment keeping container alive
ENTRYPOINT ["tail"]
CMD ["-f","/dev/null"]

View File

@ -5,12 +5,8 @@ find_program(RISCV_GCC_FOUND
get_filename_component(GCC_BIN ${RISCV_GCC_FOUND} NAME)
message("msg gcc: ${GCC_BIN}")
string(REPLACE gcc "" TOOLCHAIN_PREFIX ${GCC_BIN})
message("msg toolchain: ${TOOLCHAIN_PREFIX}")
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}g++)
set(CMAKE_OBJCOPY ${TOOLCHAIN_PREFIX}objcopy)