OPNFV KVM4NFV: Reduce Qemu build duration 51/20251/5
authorswatisharma <swatix.sharma@intel.com>
Fri, 2 Sep 2016 12:03:58 +0000 (17:33 +0530)
committerYunhong Jiang <yunhong.jiang@linux.intel.com>
Wed, 21 Sep 2016 20:29:04 +0000 (13:29 -0700)
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>
ci/build_rpm/build_rpms_docker.sh
ci/build_rpm/mkspec

index 2670163..59d5bb9 100755 (executable)
@@ -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
 
index 4aa5423..2f750dc 100755 (executable)
@@ -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}"