summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorswatisharma <swatix.sharma@intel.com>2016-09-02 17:33:58 +0530
committerYunhong Jiang <yunhong.jiang@linux.intel.com>2016-09-21 13:29:04 -0700
commit752d9050d3a2f8732c2f157b638ba90215d2bf39 (patch)
treee7af0857c2d828e6dc009b71fbf9d690bbc197eb /ci
parent1831d612b0a27437de1b1966ae93a8f9dea42e9c (diff)
OPNFV KVM4NFV: Reduce Qemu build duration
This patch contains some enhancement to reduce the duration for qemu rpm and debian build. Change-Id: Ic27b8b200a383af613a09027bad73f1cf62c54ce Co-Authored-By: Navya Bathula <b.navya4@tcs.com> Signed-off-by: Swati Sharma <swatix.sharma@intel.com> Signed-off-by: Yunhong Jiang <yunhong.jiang@linux.intel.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/build_rpm/build_rpms_docker.sh2
-rwxr-xr-xci/build_rpm/mkspec2
2 files changed, 2 insertions, 2 deletions
diff --git a/ci/build_rpm/build_rpms_docker.sh b/ci/build_rpm/build_rpms_docker.sh
index 2670163e4..59d5bb911 100755
--- a/ci/build_rpm/build_rpms_docker.sh
+++ b/ci/build_rpm/build_rpms_docker.sh
@@ -10,7 +10,7 @@ cp -r $rpm_build_dir $tmp_rpm_build_dir
cd $tmp_rpm_build_dir/qemu
make clean
./configure
-make
+make -j$(nproc)
cd $tmp_rpm_build_dir
./ci/build_rpm/qemu_rpm_build.sh build_output
diff --git a/ci/build_rpm/mkspec b/ci/build_rpm/mkspec
index 4aa542325..2f750dc34 100755
--- a/ci/build_rpm/mkspec
+++ b/ci/build_rpm/mkspec
@@ -27,7 +27,7 @@ echo "%setup -q"
echo " "
echo "%build"
echo "%_configure"
-echo "make"
+echo "make -j$(nproc)"
echo "%install"
echo "rm -rf %{buildroot}"
echo "make install DESTDIR=%{buildroot}"