public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1 1/1] uefi-sct/SctPkg: Changed gcc version to be integer
@ 2020-08-26 21:46 Joseph Hemann
  2020-09-03 16:10 ` Samer El-Haj-Mahmoud
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Hemann @ 2020-08-26 21:46 UTC (permalink / raw)
  To: devel
  Cc: G Edhaya Chandran, Eric Jin, Irene Park, Heinrich Schuchardt,
	Samer El-Haj-Mahmoud

gcc_version returned by compiler is a string, and needs to be converted
to a integer before testing

Cc: G Edhaya Chandran <Edhaya.Chandran@arm.com>
Cc: Eric Jin <eric.jin@intel.com>
Cc: Irene Park <ipark@nvidia.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Signed-off-by: Joseph Hemann <joseph.hemann@arm.com>
Change-Id: I24f3f52c12660928b58e6f836fdef86890688d26
---
 uefi-sct/SctPkg/build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh
index d0c7f16e172c..cad17ccdedc7 100755
--- a/uefi-sct/SctPkg/build.sh
+++ b/uefi-sct/SctPkg/build.sh
@@ -56,8 +56,8 @@ function get_gcc_version
 {
 	gcc_version=$($1 -dumpversion)
 
-    if [ "$gcc_version" -gt "5" ]; then
-        gcc_version="5"
+    if [ ${gcc_version%%.*} -gt 5 ]; then
+        gcc_version=5
     fi
 
 	case $gcc_version in
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-14 10:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-26 21:46 [PATCH v1 1/1] uefi-sct/SctPkg: Changed gcc version to be integer Joseph Hemann
2020-09-03 16:10 ` Samer El-Haj-Mahmoud
2020-09-14  9:23   ` [edk2-devel] " G Edhaya Chandran
2020-09-14 10:09     ` G Edhaya Chandran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox