Skip to content

Commit 6709f2a

Browse files
committed
nextpnr: move git clone into earlier build stage
1 parent 0184631 commit 6709f2a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

nextpnr.dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Authors:
22
# Anton Blanchard
3+
# Sebastian Birke <[email protected]>
34
# Unai Martinez-Corral
45
#
56
# Copyright 2019-2021 Unai Martinez-Corral <[email protected]>
@@ -36,16 +37,16 @@ ENV LDFLAGS "-Wl,--copy-dt-needed-entries"
3637
RUN apt-get update -qq \
3738
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
3839
libeigen3-dev \
39-
libomp-dev
40+
libomp-dev \
41+
&& git clone https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
42+
&& mkdir /tmp/nextpnr/build/
4043

4144
#---
4245

4346
FROM build AS build-ice40
4447
COPY --from=hdlc/pkg:icestorm /icestorm/usr/local/share/icebox /usr/local/share/icebox
4548

46-
RUN git clone https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
47-
&& mkdir /tmp/nextpnr/build/ \
48-
&& cd /tmp/nextpnr/build \
49+
RUN cd /tmp/nextpnr/build \
4950
&& cmake .. \
5051
-DARCH=ice40 \
5152
-DBUILD_GUI=OFF \
@@ -69,9 +70,7 @@ COPY --from=hdlc/pkg:icestorm /icestorm /
6970
FROM build AS build-ecp5
7071
COPY --from=hdlc/pkg:prjtrellis /prjtrellis /
7172

72-
RUN git clone https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
73-
&& mkdir /tmp/nextpnr/build/ \
74-
&& cd /tmp/nextpnr/build \
73+
RUN cd /tmp/nextpnr/build \
7574
&& cmake .. \
7675
-DARCH=ecp5 \
7776
-DBUILD_GUI=OFF \

0 commit comments

Comments
 (0)