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

@ -71,8 +71,10 @@ RUN stable_branch=$(cat VERSION | awk 'BEGIN{FS=OFS="."}{print $1 "." $2 ".x"}')
RUN echo "Apply patches for specific qemu version"
RUN /root/apply_patches.sh "/root/kata_qemu/patches/tag_patches/${QEMU_VERSION}"
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s kata-qemu | xargs ./configure \
--with-pkgversion=kata-static
ARG BUILD_SUFFIX
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s "kata-qemu${BUILD_SUFFIX}" | xargs ./configure \
--with-pkgversion="kata-static${BUILD_SUFFIX}"
RUN make -j$(nproc)
RUN make install DESTDIR="${QEMU_DESTDIR}"

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