Soft Patch Panel
 help / color / Atom feed
* [spp] [PATCH] tools/sppc: make compiling faster in build images
@ 2019-09-17  2:59 yasufum.o
  0 siblings, 0 replies; only message in thread
From: yasufum.o @ 2019-09-17  2:59 UTC (permalink / raw)
  To: spp, ferruh.yigit, yasufum.o

From: Yasufumi Ogawa <yasufum.o@gmail.com>

Add `-j` option to each of make commands to compile programs in
parallel.

Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
 tools/sppc/build/ubuntu/dpdk/Dockerfile.16.04    | 6 +++---
 tools/sppc/build/ubuntu/dpdk/Dockerfile.18.04    | 6 +++---
 tools/sppc/build/ubuntu/dpdk/Dockerfile.latest   | 6 +++---
 tools/sppc/build/ubuntu/pktgen/Dockerfile.16.04  | 4 ++--
 tools/sppc/build/ubuntu/pktgen/Dockerfile.18.04  | 4 ++--
 tools/sppc/build/ubuntu/pktgen/Dockerfile.latest | 4 ++--
 tools/sppc/build/ubuntu/spp/Dockerfile.16.04     | 4 ++--
 tools/sppc/build/ubuntu/spp/Dockerfile.18.04     | 4 ++--
 tools/sppc/build/ubuntu/spp/Dockerfile.latest    | 4 ++--
 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}
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-17  2:59 [spp] [PATCH] tools/sppc: make compiling faster in build images yasufum.o

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox