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 had few seconds of delay in arm64 VMs waiting for "Press ESCAPE for
boot options". We can improve the provisioning time by disabling that.
  • Loading branch information
pykello committed Feb 28, 2024
1 parent 90b81b3 commit 8632d8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-edk2
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# sudo -- bash -c 'apt-get update && apt-get install -y make gcc g++ flex bison nasm m4 uuid-dev g++'

WORKLOADS_DIR="$(pwd)"
EDK2_COMMIT="8736b8fdca85e02933cdb0a13309de14c9799ece"
EDK2_PLAT_COMMIT="b5fa396700e728c0e18b512229226f65337bf74a"
EDK2_COMMIT="edc6681206c1a8791981a2f911d2fb8b3d2f5768"
EDK2_PLAT_COMMIT="103c88ba5b0c6259fc674e6358c68a85e882e41b"
ACPICA_COMMIT="f16a0b4d0f0edd7b78a332fcf507be2187fac21e"

set -uex
Expand Down 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' 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 8632d8e

Please sign in to comment.