blob: cd5bc8cfc57d7c0ac4d2fa8ce1f39edcebce8d8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash
type=$1
tmp_build_dir=/root/kvmfornfv
build_dir=/opt/kvmfornfv
tmp_output_dir=$tmp_build_dir/build_output
output_dir=$build_dir/build_output
cp -r $build_dir $tmp_build_dir
# Build qemu rpm packages
cd $tmp_build_dir
#Initialize the submodule
git submodule init
#Update the submodules recursively to the latest commit
git submodule update --recursive
cd qemu
echo "Building Qemu latest release on the master branch"
git reset --hard v2.9.0
git submodule init
git submodule update --recursive
make clean
./configure
cd $tmp_build_dir
#Build qemu package
./ci/qemu_build.sh build_output $type
# Build kernel packages
./ci/kernel_build.sh build_output $type
if [ $type == "centos" ];then
# Move Kernel and Qemu Rpm builds from tmp_output_dir to output_dir
mv $tmp_output_dir/qemu-* $output_dir
mv $tmp_output_dir/kernel-* $output_dir
elif [ $type == "ubuntu" ];then
# Move Kernel and Qemu Debian builds from tmp_output_dir to output_dir
mv $tmp_output_dir/qemu-* $output_dir
mv $tmp_output_dir/linux-* $output_dir
fi
|