qemu: Add suffix for qemu binaries.

To build different qemu versions with the
same qemu code add a prefix on install.

Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
Carlos Venegas
2021-03-19 16:44:36 +00:00
parent 5493517b4f
commit bc587da9f5
2 changed files with 10 additions and 2 deletions

View File

@@ -23,6 +23,12 @@ for pattern in ${qemu_black_list[@]}; do
find . -path "$pattern" | xargs rm -rfv
done
if [[ -n "${BUILD_SUFFIX}" ]]; then
echo "Rename binaries using $BUILD_SUFFIX"
find -name 'qemu-system-*' -exec mv {} {}-experimental \;
find -name 'virtiofsd' -exec mv {} {}-experimental \;
fi
echo "INFO: create the tarball"
tar -czvf "${QEMU_TARBALL}" *
popd