Skip to content

Commit 5595fb4

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

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

nextpnr.dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Authors:
22
# Anton Blanchard
33
# Unai Martinez-Corral
4+
# Sebastian Birke
45
#
56
# Copyright 2019-2021 Unai Martinez-Corral <[email protected]>
7+
# Copyright 2021 Sebastian Birke <[email protected]>
68
#
79
# Licensed under the Apache License, Version 2.0 (the "License");
810
# you may not use this file except in compliance with the License.
@@ -36,16 +38,16 @@ ENV LDFLAGS "-Wl,--copy-dt-needed-entries"
3638
RUN apt-get update -qq \
3739
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
3840
libeigen3-dev \
39-
libomp-dev
41+
libomp-dev \
42+
&& git clone https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
43+
&& mkdir /tmp/nextpnr/build/
4044

4145
#---
4246

4347
FROM build AS build-ice40
4448
COPY --from=hdlc/pkg:icestorm /icestorm/usr/local/share/icebox /usr/local/share/icebox
4549

46-
RUN git clone https://github.com/YosysHQ/nextpnr.git /tmp/nextpnr \
47-
&& mkdir /tmp/nextpnr/build/ \
48-
&& cd /tmp/nextpnr/build \
50+
RUN cd /tmp/nextpnr/build \
4951
&& cmake .. \
5052
-DARCH=ice40 \
5153
-DBUILD_GUI=OFF \
@@ -69,9 +71,7 @@ COPY --from=hdlc/pkg:icestorm /icestorm /
6971
FROM build AS build-ecp5
7072
COPY --from=hdlc/pkg:prjtrellis /prjtrellis /
7173

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

0 commit comments

Comments
 (0)