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 Feb 28, 2024
1 parent 0d08e38 commit 23f1472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-edk2
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,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_build/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 23f1472

Please sign in to comment.