From 37c9eea1cdb24a547c0c2a416fa7f32aa564af3d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 20 Oct 2020 17:00:45 +0100 Subject: [PATCH] arm/edk2-firware: don't handle obsolete GCC releases There's no point in handling GCC cross compilers that are before version 5, as GCC 5 came out in 2017 and is obsolete now. Change-Id: I650ee44c433f70004d20c0219310ddbd4028addb Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/uefi/edk2-firmware_git.bb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/meta-arm/recipes-bsp/uefi/edk2-firmware_git.bb b/meta-arm/recipes-bsp/uefi/edk2-firmware_git.bb index ee8f5238..74924b44 100644 --- a/meta-arm/recipes-bsp/uefi/edk2-firmware_git.bb +++ b/meta-arm/recipes-bsp/uefi/edk2-firmware_git.bb @@ -52,17 +52,7 @@ export CONF_PATH = "${WORKSPACE}/Conf" export BTOOLS_PATH = "${EDK_TOOLS_PATH}/BinWrappers/PosixLike" -python __anonymous() { - # If GCC Version is greater than 4 then pass GCC5 - # set GCC5 by default - d.setVar('GCC_VER', 'GCC5') - - # Otherwise pass the corresponding version - G = d.getVar('GCCVERSION',True).split(".") - gcc_vlist = ['1', '2', '3', '4'] - if G[0] in gcc_vlist: - d.setVar('GCC_VER', 'GCC'+G[0]) -} +GCC_VER ?= "GCC5" do_compile() { sed -i -e 's:-I \.\.:-I \.\. ${BUILD_CFLAGS} :' ${EDK_TOOLS_PATH}/Source/C/Makefiles/header.makefile