mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 14:28:35 +00:00
qemu: Add support to build static qemu for dev tree
Update static build scripts to allow build qemu dev tree. When qemu starts the process for a new version the patch number from the qemu version is more than 50. Add logic to detect it and not apply patches fro the base branch. For example: Qemu 5.2.50 means the beginning for 6.0 development. After detect a development version, patches for 5.2.x will not be applied. Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
@@ -63,13 +63,9 @@ RUN git clone https://github.com/qemu/keycodemapdb.git ui/keycodemapdb
|
||||
ADD scripts/configure-hypervisor.sh /root/configure-hypervisor.sh
|
||||
ADD qemu /root/kata_qemu
|
||||
ADD scripts/apply_patches.sh /root/apply_patches.sh
|
||||
ADD scripts/patch_qemu.sh /root/patch_qemu.sh
|
||||
|
||||
RUN echo "Apply patches for base version"
|
||||
RUN stable_branch=$(cat VERSION | awk 'BEGIN{FS=OFS="."}{print $1 "." $2 ".x"}') && \
|
||||
/root/apply_patches.sh "/root/kata_qemu/patches/${stable_branch}"
|
||||
|
||||
RUN echo "Apply patches for specific qemu version"
|
||||
RUN /root/apply_patches.sh "/root/kata_qemu/patches/tag_patches/${QEMU_VERSION}"
|
||||
RUN /root/patch_qemu.sh "${QEMU_VERSION}" "/root/kata_qemu/patches"
|
||||
|
||||
ARG PREFIX
|
||||
ARG BUILD_SUFFIX
|
||||
|
Reference in New Issue
Block a user