forked from The-OpenROAD-Project/OpenROAD-flow-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.builder
More file actions
45 lines (35 loc) · 1.53 KB
/
Copy pathDockerfile.builder
File metadata and controls
45 lines (35 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# syntax=docker/dockerfile:1.7-labs
# Target with dependencies to build all flow tools from their sources.
# i.e., "./build_openroad.sh --local" from inside a docker container
# NOTE: don't use this file directly unless you know what you are doing,
# instead use etc/DockerHelper.sh
ARG fromImage=openroad/flow-ubuntu22.04-dev:latest
FROM $fromImage AS orfs-base
WORKDIR /OpenROAD-flow-scripts
COPY --link dev_env.sh dev_env.sh
COPY --link build_openroad.sh build_openroad.sh
FROM orfs-base AS orfs-builder-base
COPY --link tools tools
ARG numThreads=$(nproc)
RUN echo "" > tools/yosys/abc/.gitcommit && \
env CFLAGS="-Wno-builtin-macro-redefined" \
CXXFLAGS="-Wno-builtin-macro-redefined" \
./build_openroad.sh --no_init --local --threads ${numThreads}
FROM orfs-base
# The order for copying the directories is based on the frequency of changes (ascending order),
# and the layer size (descending order)
COPY --link docker docker
COPY --link flow/tutorials flow/tutorials
COPY --link docs docs
COPY --link flow/test flow/test
COPY --link flow/platforms flow/platforms
COPY --link flow/util flow/util
COPY --link flow/scripts flow/scripts
COPY --link flow/designs flow/designs
COPY --link tools/AutoTuner tools/AutoTuner
COPY --link --from=orfs-builder-base /OpenROAD-flow-scripts/tools/install tools/install
COPY --link \
--exclude=.git* --exclude=tools/ --exclude=docs/ --exclude=docker/ \
--exclude=flow/designs --exclude=flow/platforms --exclude=flow/scripts \
--exclude=flow/test --exclude=flow/tutorials --exclude=flow/util \
. ./