diff options
author | Swati Sharma <swatix.sharma@intel.com> | 2016-06-29 02:34:43 +0900 |
---|---|---|
committer | swatisharma <swatix.sharma@intel.com> | 2016-07-21 11:16:22 +0530 |
commit | 853d63d099ec2f098f1f36350ec0c5095c3f4fd1 (patch) | |
tree | 1216f7b689302da485e49a2c964e0f0605e60d1a /ci/build_qemu_rpm_deb/qemu_deb_build.sh | |
parent | c715b6029fd5b4eaf323f5efde4ec5db5ba0a9b4 (diff) |
Creation of QEMU(rpm and debian builds)
This includes the scripts that are added to create qemu-rpm
and qemu-debian builds for KVM4NFV.
Co-Authored-By: Gundarapu Reddy <reddyx.gundarapu@intel.com>
Signed-off-by: Swati Sharma <swatix.sharma@intel.com>
Diffstat (limited to 'ci/build_qemu_rpm_deb/qemu_deb_build.sh')
-rwxr-xr-x | ci/build_qemu_rpm_deb/qemu_deb_build.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ci/build_qemu_rpm_deb/qemu_deb_build.sh b/ci/build_qemu_rpm_deb/qemu_deb_build.sh new file mode 100755 index 000000000..7a830183d --- /dev/null +++ b/ci/build_qemu_rpm_deb/qemu_deb_build.sh @@ -0,0 +1,30 @@ +#!/bin/bash +#Build process for generating qemu debain file. + +source ci/build_qemu_rpm_deb/qemu_build.sh +qemu_deb_build() { + sudo mkdir -p $debbuild_dir/qemu-$VERSION + sudo cp -r $qemu_src_dir $debbuild_dir/qemu-$VERSION + sudo mkdir -p $debbuild_dir/qemu-$VERSION/DEBIAN + sudo touch control + +#creating control file for debian build. + (cd ${scripts_dir}; sudo ./mkcontrol.sh $VERSION > control) + sudo mv $scripts_dir/control $debbuild_dir/qemu-$VERSION/DEBIAN/control + +#building the qemu debian with control file developed. + sudo dpkg-deb --build $debbuild_dir/qemu-$VERSION + if [ ${?} -ne 0 ] ; then + echo "${0}: qemu build failed" + exit 1 + fi +} + +if [ ! -d ${debbuild_dir} ] ; then + echo "creating debbuild directory" + sudo mkdir -p $debbuild_dir +fi + +qemu_deb_build +latest_qemu_build=`sudo ls -rt $debbuild_dir | tail -1` +sudo cp $debbuild_dir/$latest_qemu_build build_output |