mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
qemu: static: Apply qemu patches depending on the verison.
qemu static is using all the patches that we have for qemu, we only want to apply depending the version. Fixes: #619 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
38b93464d8
commit
d29427d353
@ -39,9 +39,15 @@ RUN git clone https://github.com/qemu/capstone.git capstone
|
|||||||
RUN git clone https://github.com/qemu/keycodemapdb.git ui/keycodemapdb
|
RUN git clone https://github.com/qemu/keycodemapdb.git ui/keycodemapdb
|
||||||
|
|
||||||
ADD scripts/configure-hypervisor.sh /root/configure-hypervisor.sh
|
ADD scripts/configure-hypervisor.sh /root/configure-hypervisor.sh
|
||||||
ADD qemu/patches/* /root/kata_qemu_patches
|
ADD qemu/patches/ /root/kata_qemu_patches
|
||||||
|
|
||||||
RUN for patch in /root/kata_qemu_patches/*.patch; do git apply "$patch"; done
|
RUN \
|
||||||
|
cat VERSION; \
|
||||||
|
stable_branch=$(cat VERSION | awk 'BEGIN{FS=OFS="."}{print $1 "." $2 ".x"}');\
|
||||||
|
for patch in $(find /root/kata_qemu_patches/${stable_branch}/ -name '*.patch'); do\
|
||||||
|
echo "apply $patch";\
|
||||||
|
git apply "$patch"; \
|
||||||
|
done
|
||||||
|
|
||||||
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s kata-qemu | xargs ./configure \
|
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s kata-qemu | xargs ./configure \
|
||||||
--with-pkgversion=kata-static
|
--with-pkgversion=kata-static
|
||||||
|
Loading…
Reference in New Issue
Block a user