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 <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Sep 27, 2024
1 parent c4133f5 commit 22eacba
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 deprecated 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 22eacba

Please sign in to comment.