Skip to content

Commit

Permalink
fix(edk2): toolchain GCC5 was depreciated in edk2-stable202305
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <[email protected]>
  • Loading branch information
AtomicFS committed Sep 26, 2024
1 parent c4133f5 commit fdca8c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_edk2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,14 @@ 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
CURRENT_VERSION=$( echo "${VERIFICATION_TEST_EDK2_VERSION}" | tr -cd '0-9' )
if [ "${CURRENT_VERSION}" -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 fdca8c8

Please sign in to comment.