5 tmp_build_dir=/root/kvmfornfv
6 build_dir=/opt/kvmfornfv
7 tmp_output_dir=$tmp_build_dir/build_output
8 output_dir=$build_dir/build_output
9 cp -r $build_dir $tmp_build_dir
11 # Build qemu rpm packages
12 cd $tmp_build_dir/qemu
18 ./ci/qemu_build.sh build_output $type
19 # Build kernel packages
20 ./ci/kernel_build.sh build_output $type
22 if [ $type == "centos" ];then
23 # Move Kernel and Qemu Rpm builds from tmp_output_dir to output_dir
24 mv $tmp_output_dir/qemu-* $output_dir
25 mv $tmp_output_dir/kernel-* $output_dir
26 elif [ $type == "ubuntu" ];then
27 # Move Kernel and Qemu Debian builds from tmp_output_dir to output_dir
28 mv $tmp_output_dir/qemu-* $output_dir
29 mv $tmp_output_dir/linux-* $output_dir