File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ FROM base AS build
1616RUN apt-get update -qq \
1717 && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
1818 clang \
19+ git \
1920 make
2021
2122ENV CC clang
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM hdlc/yosys AS base
22
33RUN apt-get update -qq \
44 && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
5+ git \
56 libgnat-8 \
67 && apt-get autoclean && apt-get clean && apt-get -y autoremove \
78 && rm -rf /var/lib/apt/lists
@@ -12,8 +13,7 @@ FROM base AS plugin
1213
1314COPY --from=hdlc/pkg:ghdl /ghdl /opt/ghdl
1415
15- RUN mkdir /tmp/ghdl-yosys-plugin && cd /tmp/ghdl-yosys-plugin \
16- && curl -fsSL https://codeload.github.com/ghdl/ghdl-yosys-plugin/tar.gz/master | tar xzf - --strip-components=1
16+ RUN git clone https://github.com/ghdl/ghdl-yosys-plugin.git /tmp/ghdl-yosys-plugin
1717
1818RUN cp -vr /opt/ghdl/* / \
1919 && cd /tmp/ghdl-yosys-plugin \
Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ RUN apt-get update -qq \
1212FROM build AS build-ice40
1313COPY --from=hdlc/pkg:icestorm /icestorm/usr/local/share/icebox /usr/local/share/icebox
1414
15- RUN mkdir -p /tmp/nextpnr/build \
16- && cd /tmp/nextpnr \
17- && curl -fsSL https://codeload.github.com/YosysHQ/nextpnr/tar.gz/master | tar xzf - --strip-components=1 \
18- && cd build \
15+ RUN git clone --depth 1 https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
16+ && mkdir /tmp/nextpnr/build/ \
17+ && cd /tmp/nextpnr/build \
1918 && cmake .. \
2019 -DARCH=ice40 \
2120 -DBUILD_GUI=OFF \
@@ -29,10 +28,9 @@ RUN mkdir -p /tmp/nextpnr/build \
2928FROM build AS build-ecp5
3029COPY --from=hdlc/pkg:prjtrellis /prjtrellis /
3130
32- RUN mkdir -p /tmp/nextpnr/build \
33- && cd /tmp/nextpnr \
34- && curl -fsSL https://codeload.github.com/YosysHQ/nextpnr/tar.gz/master | tar xzf - --strip-components=1 \
35- && cd build \
31+ RUN git clone --depth 1 https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
32+ && mkdir /tmp/nextpnr/build/ \
33+ && cd /tmp/nextpnr/build \
3634 && cmake .. \
3735 -DARCH=ecp5 \
3836 -DBUILD_GUI=OFF \
Original file line number Diff line number Diff line change @@ -20,15 +20,14 @@ RUN apt-get update -qq \
2020 flex \
2121 gawk \
2222 gcc \
23- git \
2423 iverilog \
2524 pkg-config \
2625 zlib1g-dev \
2726 && apt-get autoclean && apt-get clean && apt-get -y autoremove \
2827 && rm -rf /var/lib/apt/lists/*
2928
30- RUN mkdir /tmp/ yosys && cd /tmp/yosys \
31- && curl -fsSL https://codeload.github.com/YosysHQ/ yosys/tar.gz/master | tar xzf - --strip-components=1 \
29+ RUN git clone --depth 1 https://github.com/YosysHQ/ yosys.git /tmp/yosys \
30+ && cd /tmp/ yosys \
3231 && make -j $(nproc) \
3332 && make DESTDIR=/opt/yosys install \
3433 && make test
You can’t perform that action at this time.
0 commit comments