This repository was archived by the owner on Aug 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ QEMU_REL="qemu-4.2.0"
1313CIV_WORK_DIR=$( pwd)
1414CIV_GOP_DIR=$CIV_WORK_DIR /GOP_PKG
1515CIV_VERTICAl_DIR=$CIV_WORK_DIR /vertical_patches/host
16+ CIV_VERTICAl_PROD_DIR=$CIV_WORK_DIR /vertical_prod_patches/host/caas_tpy
1617
1718# --------- Functions -------------------
1819function error() {
@@ -58,6 +59,14 @@ function ubu_install_qemu_gvt(){
5859 patch -p1 < $i
5960 done
6061 fi
62+
63+ vertical_prod_qemu_patch_num=$( ls $CIV_VERTICAl_PROD_DIR /qemu/* .patch 2> /dev/null | wc -l)
64+ if [ " $vertical_prod_qemu_patch_num " != " 0" ]; then
65+ for i in $CIV_VERTICAl_PROD_DIR /qemu/* .patch; do
66+ echo " applying qemu patch $i "
67+ patch -p1 < $i
68+ done
69+ fi
6170
6271 ./configure --prefix=/usr \
6372 --enable-kvm \
@@ -96,6 +105,14 @@ function ubu_build_ovmf_gvt(){
96105 patch -p1 < $i
97106 done
98107 fi
108+
109+ vertical_prod_ovmf_patch_num=$( ls $CIV_VERTICAl_PROD_DIR /ovmf/* .patch 2> /dev/null | wc -l)
110+ if [ " $vertical_prod_ovmf_patch_num " != " 0" ]; then
111+ for i in $CIV_VERTICAl_PROD_DIR /ovmf/* .patch; do
112+ echo " applying ovmf patch $i "
113+ patch -p1 < $i
114+ done
115+ fi
99116
100117 source ./edksetup.sh
101118 make -C BaseTools/
You can’t perform that action at this time.
0 commit comments