Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 794d1a0

Browse files
committed
Vertical prod Host patch apply support
Adding support to apply product specific patches separatelly. Tracked-On: OAM-98004 Signed-off-by: Amalendu Prasad Das <amalendu.prasad.das@intel.com>
1 parent 297f1b4 commit 794d1a0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

scripts/setup_host.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ QEMU_REL="qemu-4.2.0"
1313
CIV_WORK_DIR=$(pwd)
1414
CIV_GOP_DIR=$CIV_WORK_DIR/GOP_PKG
1515
CIV_VERTICAl_DIR=$CIV_WORK_DIR/vertical_patches/host
16+
CIV_VERTICAl_PROD_DIR=$CIV_WORK_DIR/vertical_prod_patches/host
1617

1718
#--------- Functions -------------------
1819
function 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/

0 commit comments

Comments
 (0)