Soft Patch Panel
 help / color / Atom feed
From: yasufum.o@gmail.com
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH] tools/sppc: make compiling faster in build images
Date: Tue, 17 Sep 2019 11:59:19 +0900
Message-ID: <20190917025919.17734-1-yasufum.o@gmail.com> (raw)

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


                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190917025919.17734-1-yasufum.o@gmail.com \
    --to=yasufum.o@gmail.com \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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