Compare commits
2 Commits
2a7abd16b1
...
e826f9ff88
Author | SHA1 | Date | |
---|---|---|---|
e826f9ff88 | |||
bc4167b7ed |
11
Dockerfile
11
Dockerfile
@ -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"]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user