summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasufumi Ogawa <yasufum.o@gmail.com>2019-09-17 11:59:19 +0900
committerYasufumi Ogawa <yasufum.o@gmail.com>2019-10-04 22:06:14 +0900
commit7dc00bd770b584243b5ed0caa9c3db3ef8781c80 (patch)
tree272aadf8b963ac0636fa0cea9aaaae15e51aa233
parent8a7eeb1b994322963eab5a933494c5b9c416c484 (diff)
downloadspp-7dc00bd770b584243b5ed0caa9c3db3ef8781c80.zip
spp-7dc00bd770b584243b5ed0caa9c3db3ef8781c80.tar.gz
spp-7dc00bd770b584243b5ed0caa9c3db3ef8781c80.tar.xz
tools/sppc: make compiling faster in build images
Add `-j` option to each of make commands to compile programs in parallel. Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rw-r--r--tools/sppc/build/ubuntu/dpdk/Dockerfile.16.046
-rw-r--r--tools/sppc/build/ubuntu/dpdk/Dockerfile.18.046
-rw-r--r--tools/sppc/build/ubuntu/dpdk/Dockerfile.latest6
-rw-r--r--tools/sppc/build/ubuntu/pktgen/Dockerfile.16.044
-rw-r--r--tools/sppc/build/ubuntu/pktgen/Dockerfile.18.044
-rw-r--r--tools/sppc/build/ubuntu/pktgen/Dockerfile.latest4
-rw-r--r--tools/sppc/build/ubuntu/spp/Dockerfile.16.044
-rw-r--r--tools/sppc/build/ubuntu/spp/Dockerfile.18.044
-rw-r--r--tools/sppc/build/ubuntu/spp/Dockerfile.latest4
9 files changed, 21 insertions, 21 deletions
diff --git a/tools/sppc/build/ubuntu/dpdk/Dockerfile.16.04 b/tools/sppc/build/ubuntu/dpdk/Dockerfile.16.04
index b4b3681..80e15e1 100644
--- a/tools/sppc/build/ubuntu/dpdk/Dockerfile.16.04
+++ b/tools/sppc/build/ubuntu/dpdk/Dockerfile.16.04
@@ -34,9 +34,9 @@ RUN git clone $dpdk_branch $dpdk_repo
# Compile DPDK
WORKDIR $rte_sdk
-RUN make install T=$rte_target
-RUN make app T=$rte_target
-RUN make examples T=$rte_target
+RUN make -j install T=$rte_target
+RUN make -j app T=$rte_target
+RUN make -j examples T=$rte_target
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/dpdk/Dockerfile.18.04 b/tools/sppc/build/ubuntu/dpdk/Dockerfile.18.04
index 5880709..348b71c 100644
--- a/tools/sppc/build/ubuntu/dpdk/Dockerfile.18.04
+++ b/tools/sppc/build/ubuntu/dpdk/Dockerfile.18.04
@@ -34,9 +34,9 @@ RUN git clone $dpdk_branch $dpdk_repo
# Compile DPDK
WORKDIR $rte_sdk
-RUN make install T=$rte_target
-RUN make app T=$rte_target
-RUN make examples T=$rte_target
+RUN make -j install T=$rte_target
+RUN make -j app T=$rte_target
+RUN make -j examples T=$rte_target
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/dpdk/Dockerfile.latest b/tools/sppc/build/ubuntu/dpdk/Dockerfile.latest
index 425b3f8..0bf028e 100644
--- a/tools/sppc/build/ubuntu/dpdk/Dockerfile.latest
+++ b/tools/sppc/build/ubuntu/dpdk/Dockerfile.latest
@@ -34,9 +34,9 @@ RUN git clone $dpdk_branch $dpdk_repo
# Compile DPDK
WORKDIR $rte_sdk
-RUN make install T=$rte_target
-RUN make app T=$rte_target
-RUN make examples T=$rte_target
+RUN make -j install T=$rte_target
+RUN make -j app T=$rte_target
+RUN make -j examples T=$rte_target
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/pktgen/Dockerfile.16.04 b/tools/sppc/build/ubuntu/pktgen/Dockerfile.16.04
index 4c4ae49..7f9a879 100644
--- a/tools/sppc/build/ubuntu/pktgen/Dockerfile.16.04
+++ b/tools/sppc/build/ubuntu/pktgen/Dockerfile.16.04
@@ -42,10 +42,10 @@ RUN git clone ${pktgen_branch} ${pktgen_repo}
# Compile DPDK and pktgen
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${pktgen_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/pktgen/Dockerfile.18.04 b/tools/sppc/build/ubuntu/pktgen/Dockerfile.18.04
index 9862e4d..5ade823 100644
--- a/tools/sppc/build/ubuntu/pktgen/Dockerfile.18.04
+++ b/tools/sppc/build/ubuntu/pktgen/Dockerfile.18.04
@@ -43,10 +43,10 @@ RUN git clone ${pktgen_branch} ${pktgen_repo}
# Compile DPDK and pktgen
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${pktgen_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/pktgen/Dockerfile.latest b/tools/sppc/build/ubuntu/pktgen/Dockerfile.latest
index 1f48c19..5b360ed 100644
--- a/tools/sppc/build/ubuntu/pktgen/Dockerfile.latest
+++ b/tools/sppc/build/ubuntu/pktgen/Dockerfile.latest
@@ -43,10 +43,10 @@ RUN git clone ${pktgen_branch} ${pktgen_repo}
# Compile DPDK and pktgen
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${pktgen_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.16.04 b/tools/sppc/build/ubuntu/spp/Dockerfile.16.04
index a928ac4..e43a20b 100644
--- a/tools/sppc/build/ubuntu/spp/Dockerfile.16.04
+++ b/tools/sppc/build/ubuntu/spp/Dockerfile.16.04
@@ -44,10 +44,10 @@ RUN git clone ${spp_branch} ${spp_repo}
# Compile DPDK and SPP
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${spp_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.18.04 b/tools/sppc/build/ubuntu/spp/Dockerfile.18.04
index 7a7c06b..2257747 100644
--- a/tools/sppc/build/ubuntu/spp/Dockerfile.18.04
+++ b/tools/sppc/build/ubuntu/spp/Dockerfile.18.04
@@ -45,10 +45,10 @@ RUN git clone ${spp_branch} ${spp_repo}
# Compile DPDK and SPP
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${spp_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}
diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.latest b/tools/sppc/build/ubuntu/spp/Dockerfile.latest
index 6f87cd1..dcacab2 100644
--- a/tools/sppc/build/ubuntu/spp/Dockerfile.latest
+++ b/tools/sppc/build/ubuntu/spp/Dockerfile.latest
@@ -45,10 +45,10 @@ RUN git clone ${spp_branch} ${spp_repo}
# Compile DPDK and SPP
WORKDIR ${rte_sdk}
-RUN make install T=${rte_target}
+RUN make -j install T=${rte_target}
WORKDIR ${home_dir}/${spp_dir}
-RUN make
+RUN make -j
# Set working directory when container is launched
WORKDIR ${home_dir}