Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical prod Host patch apply support #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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