Skip to content

Commit

Permalink
Update configure-xen.sh
Browse files Browse the repository at this point in the history
Disable OVMF build due to github actions breakage: fatal: could not read Username for 'https://github.com': No such device or address
  • Loading branch information
tklengyel authored Nov 21, 2024
1 parent 2c26886 commit 1b0e033
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions package/configure-xen.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
#!/bin/bash

## Disabling OVMF build due to github actions breakage:
## fatal: could not read Username for 'https://github.com': No such device or address

# Building OVMF is broken with gcc-11 (default on jammy)
# Unfortunately we can't just set CC in the environment because the edk2 build system is insane
# gcc-9 is not available on bookworm so there we build with no ovmf at all

OVMF=""
GCC_VERSION=$(gcc --version | head -n1 | awk '{ print $4 }' | awk -F'.' '{ print $1 }')
if [ ${GCC_VERSION} -gt 9 ] && [ -f /usr/bin/gcc-9 ]; then
rm /usr/bin/gcc
ln -s /usr/bin/gcc-9 /usr/bin/gcc
OVMF="--enable-ovmf"
fi
#GCC_VERSION=$(gcc --version | head -n1 | awk '{ print $4 }' | awk -F'.' '{ print $1 }')
#if [ ${GCC_VERSION} -gt 9 ] && [ -f /usr/bin/gcc-9 ]; then
# rm /usr/bin/gcc
# ln -s /usr/bin/gcc-9 /usr/bin/gcc
# OVMF="--enable-ovmf"
#fi

./configure --prefix=/usr --enable-githttp \
--disable-pvshim --disable-werror \
Expand Down

0 comments on commit 1b0e033

Please sign in to comment.