[edk2-devel] [edk2-test] [PATCH 1/3] uefi-sct/SctPkg: Fix build.sh when specifying GCC5 toolchain

Rebecca Cran rebecca at nuviainc.com
Thu Sep 24 21:21:29 UTC 2020


build.sh usage indicates that "GCC5" can be specified, but it's currently
rejected due to a case statement only matching "GCC" or "gcc".
Fix this by adding a wildcard match.

Signed-off-by: Rebecca Cran <rebecca at nuviainc.com>
---
 uefi-sct/SctPkg/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh
index cad17ccd..be610deb 100755
--- a/uefi-sct/SctPkg/build.sh
+++ b/uefi-sct/SctPkg/build.sh
@@ -151,7 +151,7 @@ case `uname` in
 			TARGET_TOOLS=ARMGCC
 		;;
 		
-		GCC | gcc)
+		GCC* | gcc*)
             set_cross_compile
 	        CROSS_COMPILE="$TEMP_CROSS_COMPILE"
             export TARGET_TOOLS=`get_gcc_version "$CROSS_COMPILE"gcc`
-- 
2.26.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#65577): https://edk2.groups.io/g/devel/message/65577
Mute This Topic: https://groups.io/mt/77067560/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list