Reviewed-by: Samer El-Haj-Mahmoud <[email protected]>
> -----Original Message----- > From: Joseph Hemann <[email protected]> > Sent: Wednesday, August 26, 2020 5:46 PM > To: [email protected] > Cc: G Edhaya Chandran <[email protected]>; Eric Jin > <[email protected]>; Irene Park <[email protected]>; Heinrich Schuchardt > <[email protected]>; Samer El-Haj-Mahmoud <Samer.El-Haj- > [email protected]> > Subject: [PATCH v1 1/1] uefi-sct/SctPkg: Changed gcc version to be integer > > gcc_version returned by compiler is a string, and needs to be converted to a > integer before testing > > Cc: G Edhaya Chandran <[email protected]> > Cc: Eric Jin <[email protected]> > Cc: Irene Park <[email protected]> > Cc: Heinrich Schuchardt <[email protected]> > Cc: Samer El-Haj-Mahmoud <[email protected]> > Signed-off-by: Joseph Hemann <[email protected]> > 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 IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#65009): https://edk2.groups.io/g/devel/message/65009 Mute This Topic: https://groups.io/mt/76439007/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
