28 lines
583 B
Docker
28 lines
583 B
Docker
FROM ubuntu:22.04
|
|
RUN apt update && \
|
|
apt install -y autoconf gperf make gcc g++ bison flex && \
|
|
apt clean
|
|
|
|
WORKDIR /iverilog
|
|
|
|
# BUILD DEV CODE
|
|
# RUN git clone --recursive https://github.com/steveicarus/iverilog.git
|
|
|
|
# BUILD RELEASED CODE
|
|
RUN apt update && \
|
|
apt install -y wget && \
|
|
apt clean
|
|
RUN wget https://github.com/steveicarus/iverilog/archive/refs/tags/v12_0.tar.gz && \
|
|
tar -xzf ./v*.tar.gz && \
|
|
mv ./iverilog* ./iverilog
|
|
|
|
WORKDIR /iverilog/iverilog
|
|
|
|
RUN sh autoconf.sh
|
|
RUN ./configure
|
|
RUN make
|
|
|
|
RUN make check
|
|
RUN make install
|
|
|
|
ENTRYPOINT [ "bash" ] |