public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Rebecca Cran" <rebecca@nuviainc.com>
To: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Eric Jin <eric.jin@intel.com>,
	G Edhaya Chandran <Edhaya.Chandran@arm.com>
Subject: Re: [edk2-test] [PATCH 1/3] uefi-sct/SctPkg: Fix build.sh when specifying GCC5 toolchain
Date: Wed, 11 Nov 2020 14:56:52 -0700	[thread overview]
Message-ID: <ecdbd6a7-8246-274c-3c7a-a5086c616ea1@nuviainc.com> (raw)
In-Reply-To: <DB7PR08MB3260BDBAD888F45965A18B3090E80@DB7PR08MB3260.eurprd08.prod.outlook.com>

Samer,


That doesn't fix it: the script as written expects you to run it with 
"GCC" and have your path configured for GCC4, GCC5 etc.

However, "./build.sh --help" says:

<architecture (ARM, AARCH64, X64, etc)> <toolchain name (RVCT or ARMGCC 
or GCC*)> [build type (RELEASE OR DEBUG, DEFAULT: DEBUG)]"


I interpreted "GCC*" as meaning you could pass "GCC5" and have it work 
like edk2 in that it would build for gcc 5 and newer. My patch at least 
allows "GCC5" to work the same as just "GCC".


-- 
Rebecca Cran


On 11/11/20 2:01 PM, Samer El-Haj-Mahmoud wrote:
> Rebecca,
>
> First, apologies for the delayed review! And thanks for contributing these fixes to SCT.
>
>   Did you happen to check if https://github.com/tianocore/edk2-test/commit/323883de08ec30072c683d7e0602158e6e3e66fe already fixed this gcc5 build issue?
>
>
>
>> -----Original Message-----
>> From: Rebecca Cran <rebecca@nuviainc.com>
>> Sent: Thursday, September 24, 2020 5:38 PM
>> To: devel@edk2.groups.io
>> Cc: Eric Jin <eric.jin@intel.com>; G Edhaya Chandran
>> <Edhaya.Chandran@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-
>> Mahmoud@arm.com>; Rebecca Cran <rebecca@nuviainc.com>
>> Subject: [edk2-test] [PATCH 1/3] uefi-sct/SctPkg: Fix build.sh when
>> specifying GCC5 toolchain
>>
>> 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@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
>> cad17ccdedc7..be610debcf3c 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
> 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.

  reply	other threads:[~2020-11-11 21:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-24 21:37 [edk2-test] [PATCH 0/3] Fixes to SctPkg/build.sh Rebecca Cran
2020-09-24 21:37 ` [edk2-test] [PATCH 1/3] uefi-sct/SctPkg: Fix build.sh when specifying GCC5 toolchain Rebecca Cran
2020-11-11 21:01   ` Samer El-Haj-Mahmoud
2020-11-11 21:56     ` Rebecca Cran [this message]
2020-11-11 22:03       ` [edk2-devel] " Samer El-Haj-Mahmoud
2020-09-24 21:37 ` [edk2-test] [PATCH 2/3] uefi-sct: Fix the mailing list address in Maintainers.txt and Readme.md Rebecca Cran
2020-11-11 21:02   ` Samer El-Haj-Mahmoud
2020-09-24 21:37 ` [edk2-test] [PATCH 3/3] uefi-sct/SctPkg: Fix some indentation issues in build.sh Rebecca Cran
2020-11-11 18:14 ` [edk2-devel] [edk2-test] [PATCH 0/3] Fixes to SctPkg/build.sh Grant Likely
  -- strict thread matches above, loose matches on Subject: below --
2020-09-24 21:21 [edk2-test] [PATCH 1/3] uefi-sct/SctPkg: Fix build.sh when specifying GCC5 toolchain Rebecca Cran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ecdbd6a7-8246-274c-3c7a-a5086c616ea1@nuviainc.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox