Skip to content

Commit

Permalink
Disable the "Press ESCAPE for boot options" prompt in arm64
Browse files Browse the repository at this point in the history
We can improve provisioning times form arm64 VMs by few seconds by
setting the timeout for this prompt to 0. Default was 3.

This timeout is already 0 for x64.
  • Loading branch information
pykello committed Mar 8, 2024
1 parent 98a31cd commit edea6e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-edk2
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ build_edk2() {
! -f "$EDK2_PLAT_DIR/.built" ||
! -f "$ACPICA_DIR/.built" ]]; then
pushd "$EDK2_BUILD_DIR" || exit

# Build
make -C acpica -j "$(nproc)"
# shellcheck disable=SC1091
Expand All @@ -108,6 +109,8 @@ build_edk2() {
build -a X64 -t GCC5 -p OvmfPkg/CloudHv/CloudHvX64.dsc -b RELEASE -n 0
cp Build/CloudHvX64/RELEASE_GCC5/FV/CLOUDHV.fd "$WORKLOADS_DIR/CLOUDHV-x64.fd"
elif [ "$architecture" = "aarch64" ]; then
# We don't need the "Press ESCAPE for boot options" prompt
sed -i 's/\(gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|\)[0-9]\+/\10/g' edk2/ArmVirtPkg/ArmVirtCloudHv.dsc
build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtCloudHv.dsc -b RELEASE -n 0
cp Build/ArmVirtCloudHv-AARCH64/RELEASE_GCC5/FV/CLOUDHV_EFI.fd "$WORKLOADS_DIR/CLOUDHV-arm64.fd"
else
Expand Down

0 comments on commit edea6e1

Please sign in to comment.