Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/setup_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ QEMU_REL="qemu-4.2.0"
CIV_WORK_DIR=$(pwd)
CIV_GOP_DIR=$CIV_WORK_DIR/GOP_PKG
CIV_VERTICAl_DIR=$CIV_WORK_DIR/vertical_patches/host
CIV_VERTICAl_PROD_DIR=$CIV_WORK_DIR/vertical_prod_patches/host

#--------- Functions -------------------
function error() {
Expand Down Expand Up @@ -58,6 +59,14 @@ function ubu_install_qemu_gvt(){
patch -p1 < $i
done
fi

vertical_prod_qemu_patch_num=$(ls $CIV_VERTICAl_PROD_DIR/qemu/*.patch 2> /dev/null | wc -l)
if [ "$vertical_prod_qemu_patch_num" != "0" ]; then
for i in $CIV_VERTICAl_PROD_DIR/qemu/*.patch; do
echo "applying qemu patch $i"
patch -p1 < $i
done
fi

./configure --prefix=/usr \
--enable-kvm \
Expand Down Expand Up @@ -96,6 +105,14 @@ function ubu_build_ovmf_gvt(){
patch -p1 < $i
done
fi

vertical_prod_ovmf_patch_num=$(ls $CIV_VERTICAl_PROD_DIR/ovmf/*.patch 2> /dev/null | wc -l)
if [ "$vertical_prod_ovmf_patch_num" != "0" ]; then
for i in $CIV_VERTICAl_PROD_DIR/ovmf/*.patch; do
echo "applying ovmf patch $i"
patch -p1 < $i
done
fi

source ./edksetup.sh
make -C BaseTools/
Expand Down