Skip to content

Commit

Permalink
fix(edk2): GCC5 was depreciated in edk2-stable202305
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Sep 26, 2024
1 parent c4133f5 commit 06cbe5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_edk2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,13 @@ fi
if [ "${VERIFICATION_TEST_EDK2_VERSION}" == "UDK2017" ]; then
OvmfPkg/build.sh -a X64
else
build -D BOOTLOADER=COREBOOT -a IA32 -a X64 -t GCC5 -b DEBUG -p "${PAYLOAD}" -D BUILD_ARCH=X64
# GCC5 is depreciated since edk2-stable202305
# For more information see https://github.com/9elements/firmware-action/issues/340
if [ $( echo "${VERIFICATION_TEST_EDK2_VERSION}" | tr -cd [0-9] ) -ge $( echo "edk2-stable202305" | tr -cd [0-9] ) ]; then
echo "edk2-stable202305 or newer"
build -D BOOTLOADER=COREBOOT -a IA32 -a X64 -t GCC -b DEBUG -p "${PAYLOAD}" -D BUILD_ARCH=X64
else
echo "older than edk2-stable202305"
build -D BOOTLOADER=COREBOOT -a IA32 -a X64 -t GCC5 -b DEBUG -p "${PAYLOAD}" -D BUILD_ARCH=X64
fi
fi

0 comments on commit 06cbe5d

Please sign in to comment.