From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web11.1642.1614826930366028644 for ; Wed, 03 Mar 2021 19:02:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Ht3vDuOM; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=06976aa159=daniel.schaefer@hpe.com) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1242vxwG020598; Thu, 4 Mar 2021 03:02:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=ONbJLDOZwA72QriFAan+gIiy2tvfsWAinwd+7IbFIRg=; b=Ht3vDuOM7EfHm3D7lfrIVhHakb+juBS91jVhoQZ0HDMsxylqUyWC5rkVWona5Gt4kdTx irk6FS7+ROqVB/YqUVkZdLVs2TGaqiJHY3D8TTGGlPxSiHned6wgXLWqaPtMhIKugyW3 Pa2ZEcmmkuhraqm+FJB++rXDKHahE+K4cOC0KyEjPRDZfoxtyLY2hkv8WSKUNPz1phKj xdB3qDHqBZE0w8yfHujkL5QKlXxcbAxlgu5nPtStcaO6cqpIAJXecmzBmd8SckDBOnLm YCJOzrNdHfvcCZfO5bvejxZ5AnFSD/pqRXgqAlgMpgo9MnD4Ak1JZMZUrbwCGP4bFjJH Fg== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0a-002e3701.pphosted.com with ESMTP id 3720nmjahm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Mar 2021 03:02:03 +0000 Received: from G4W9121.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.21.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5008.houston.hpe.com (Postfix) with ESMTPS id C05FD57; Thu, 4 Mar 2021 03:02:02 +0000 (UTC) Received: from G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) by G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Mar 2021 03:01:48 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8107.americas.hpqcorp.net (16.193.72.59) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 4 Mar 2021 03:01:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TJ6KjFC99MbGE0F8LPmPnXaraJPL8MbvswoJYkuMT9mdIzF4zUUyrwrp3YuL1bTxZwsTMZbRfptSUSKMs7cIZe/Nb0BK04B0MXhfhk0/sZIFCNu7DV7dC85iFH5fHqoGsDNesspx8b/94awtX5lhQ4nPtKw6M+hn093eYgghZSUr/QktGFXkoLsQS4ldkfWlaxhk15RRWjmNS+fkjTb5SzTaOeAknkESXESdKjJOEy8MCLiUOA3lbT3PPo8+KoyZVvBR5lvgsGylKn2iuXHs2HGUFAug8HAdDINMvZWREsjnaveCV8UGRU5xMbs6g/kfM7KqUh02KQSp5vVxg1D7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ONbJLDOZwA72QriFAan+gIiy2tvfsWAinwd+7IbFIRg=; b=KGP+U8DvP0IZdbkXhZa3hq22xdqAkLhYJq/J9EkeKuADKyz0Zg5VEjKtjSd+lp7ZcSnVetwoLaAEOJnoVsxjEIVeAfN0/pgqX2/PppPvzZxao2tUUd09Hw8nphKGDfo3xgRV9R3n24F+8v4uCir4kkRMGzX2kGAOe+EiCqnk2191mAl6375CGPUjsttB8H9pFgaIDUURR0DAHUuPZhQANKVtB9ezIuNmZwdDdEkemPlKXWjEARXhfO9UaqEJmX4HTuAMZsA1NbtzxoKlCk6t9tqliDxtlpzrykHZyyUvedVmvLK3YcozhvqqX8m/c7N1A1/m8WZ+R1FJnfjA6QFZKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: gmx.de; dkim=none (message not signed) header.d=none;gmx.de; dmarc=none action=none header.from=hpe.com; Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) by DF4PR8401MB0617.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7607::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Thu, 4 Mar 2021 03:01:44 +0000 Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::ad2c:ff74:846c:5318]) by DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::ad2c:ff74:846c:5318%7]) with mapi id 15.20.3912.017; Thu, 4 Mar 2021 03:01:44 +0000 Subject: Re: [edk2-test PATCHv2 4/5] SctPkg: Unify CC_FLAGS for all GCC platforms To: "Chang, Abner (HPS SW/FW Technologist)" , "devel@edk2.groups.io" CC: G Edhaya Chandran , Barton Gao , Samer El-Haj-Mahmoud , Eric Jin , Arvin Chen , Leif Lindholm , Heinrich Schuchardt References: <20210209154354.30234-1-daniel.schaefer@hpe.com> <20210209154354.30234-5-daniel.schaefer@hpe.com> From: "Daniel Schaefer" Message-ID: <65ccc5d3-8af0-df5d-587c-c63e19cb4aee@hpe.com> Date: Thu, 4 Mar 2021 11:01:30 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 In-Reply-To: X-Originating-IP: [15.211.146.34] X-ClientProxiedBy: SG2PR0401CA0020.apcprd04.prod.outlook.com (2603:1096:3:1::30) To DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.20.4.199] (15.211.146.34) by SG2PR0401CA0020.apcprd04.prod.outlook.com (2603:1096:3:1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Thu, 4 Mar 2021 03:01:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5338da36-ebe3-4ccc-0dcc-08d8deb9d7bd X-MS-TrafficTypeDiagnostic: DF4PR8401MB0617: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AIm7tg37yrahXkESaoPlut8yDQeYyaJ0ctLcrkFaZufcL0Slu2uCzBrBxwA7/0Qr009uloPkouaP4XdlINi4+RJQ3gCEGKlGyzMAD904jyI5hs5pfT6Wy2PKRtkeySauhYz2BJUs5CFCeZVu9nKpb9i7GWCmhS09GqvldHyxEmfKJ1RnZBOA7Odifz7sZ/yETRISqlHlEWjku5k1+trWwZYxK2Bz2Xv5GUBlIr/q7cxtvYb/BUy0F9TNah9IKWLvr1QUoWZ4k+GhYH+RKjafO8hnXgrAf/5qOn/XpW6tYUI8ecHwAb81T4TEEljyB3q9ecg6hfoXpD0K47PQFRgsglXxTYOcud5zjOauZPYEvrHCGgr9fYrfNJORt2JMWCRk2DWlv4MSGS1g535xsG7fWGN5o1FoUsousKPYa2iG+++QruJcG1qa8KjljTPCTduJ7JbuxP5qzSAa718V0sPJbeiMaNBM1UJJbmWMWYBtn0fmzZR3qHcJ+5DB1ghCvn5iZu1MFtsVlJv1AF64cioI/W5qj6HJzQMftC0kL+BMqTlBLoY1ppaQmW7RzxfvyeQtu18fcEnvSGNoLVnsDUJ0o12pS7kY7yoV66mQVRrq45qwU/03x1ia7cDZ0J2o0EZbQgVAd6qxzehw2onWvxqzIvxOUgUslKBSEY3Nd5CvXZKgGV+f6mST1sIi6PLf6NqZ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(376002)(396003)(136003)(366004)(346002)(39860400002)(26005)(8936002)(956004)(86362001)(31686004)(6666004)(36756003)(8676002)(53546011)(16576012)(478600001)(5660300002)(110136005)(2616005)(186003)(31696002)(6486002)(66946007)(66476007)(4326008)(66556008)(83380400001)(52116002)(54906003)(44832011)(316002)(2906002)(16526019)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?LzRrZ1pVcWxxMUg4RTRwL2JYRFV5d0l5TFYvZC9ValBGR21NbmpySEF5WUdG?= =?utf-8?B?RGw0Vjl5WWcxSEd3NXdRcmNVbGFaaVlMb0VqbElYcnBWWGxnenNpOUZVQjV2?= =?utf-8?B?STBjb0lpWk9YVjE0RzNLelJSRzFPYmVLTThBVHZwSHJjYWkvamFESzFnUkxF?= =?utf-8?B?aU1kZEZQSWRYekg1M1BDMU1NUUNRcW9RTXl3THVDOVVsMjlsQmlEWjc1U1Y3?= =?utf-8?B?Zm9xV0M0UkNYWVV2SmpJK1cxV1lmS1plaGRMWVFmK3ZIYmNVNSt1UENSZm9r?= =?utf-8?B?TW5TUC9GV3g2WWg5cjdPNmhuZnI1eWswUWFhd3lZS0V5Zk05bWN1MGYyeHl4?= =?utf-8?B?WDB0VlIvSGt2QWpzdVJHampvZ01XVnJrQTJUWUU3ZDhWc0JPVkxudnNKM2Mw?= =?utf-8?B?TUJVOGN5SnRDQW83UWU0ZEduR0owS2wzY3pJb0VIcldsU09Fc1VLYnl6N1pZ?= =?utf-8?B?NU9TSWRONUVIcm1xWHJVQTQ4K2FEU3pkOFM3aUZBeUViYUlsZDIxSUFLNk5E?= =?utf-8?B?Y1NHelNsWlZONWV2dzNjTzUzSFBiNEVIQ2tFZEF2WXprRWRkT1dGenRmOVBL?= =?utf-8?B?UUNLUjlSQkMxbGljMEJvcW9Vc3UyL0xJcmhiYkIzdTlRa3Z4Y1A3YjVqZ21x?= =?utf-8?B?RGxPTVVnUFYrcmd3Z2VjV0hKYjRtL0MwUk1hNytwVTc3OHJ5QlZzeExFNmJ4?= =?utf-8?B?NExiZVQzUUFQZm1DOElNRFFTWTNwYklYaFpjRmNpaUtLQlhXcTFSRlpuQmJO?= =?utf-8?B?T2RGVngyd1c0UUY3RDkyVC94R04xdCt0NzhtNTJ6VExJRDdha1RNT1M3eXp0?= =?utf-8?B?SUJaZVJkVmVPQ0N0Z0FldzNDem1jMnU1aE51UmEybU14Vk9FNTQ0a1ZIRldi?= =?utf-8?B?UnM3cUgxUHl5ZEpIQkpMWTBEcjNwNEM1bUtIb0VVcHk5NnJKTGZYRG5nTkhn?= =?utf-8?B?UFQ2THhoZU4xNnE1TnpIQU9Dc2VEV21YUmFFMC9LVEhBbzJxcVZBNnN4ZFpG?= =?utf-8?B?RG9aVElBa2pJREI5dmNsdThjbDJTbVJBajV4WDdXd0lSR0FPTkxBSTE4RWtH?= =?utf-8?B?dXM1eEhPZnVmSG1zZnlyV2JKSk1LQ2owekIvWWUrN05ubGt3a1BtUEFLQlpy?= =?utf-8?B?bFlXZUZpT01tM0VjNHo2YytkMW9nd1M1VGUxYXNnMmRMUllkT21PWDZVNEk2?= =?utf-8?B?Szl4cmV2UTcydE41UHcrR09ITmk1cFkxU2pId2wrejVCOGMxOXZIUGFrSzY3?= =?utf-8?B?Q1lBK3dvSHRDTHFTdzh5ZmNVa1RDR216Q3haZGtnN3k1SEMxbkNLQkYrRSti?= =?utf-8?B?MHI5UXZlbDBIakI5RUZhZEphVTAxbDVqQ3pQZUtwY3RYVTNlL2NFRGxnZnJV?= =?utf-8?B?RVY2VE5WaXBGb2tzdmRrb25NRFZMSmUwMzhIdlh1aGRUR3JuTGNKamtpcEh0?= =?utf-8?B?VjAxRWdDbC90c3lxS1dITU1UR1Bsd3BYeW52dkdYRW5jcEpJamQ2Y25JSlVz?= =?utf-8?B?THVMRm9RZFBWcWJRSUd3bGdsWm1NdDhkRE1YMDNWeTV3NU5XZnlyaUJuRFZ4?= =?utf-8?B?YXhDd01uQTlKR1lwdjdzdXVpSWVjMzdoc2VCK3lFbDBROHlia0Y2Wm0waVM1?= =?utf-8?B?dTYrNkEzOUY1a0Vqb2pKZ2ZaS1U1T1gwOGFGdzRkSzB6NkVoakY3RnZzdWkw?= =?utf-8?B?a05xeE9XK2Y3M1ZaQUxiMS9rZEFGTEdLVTlicDJCMkJweHVqY3p1ODlKajh0?= =?utf-8?Q?tTethWgbrvcsJACSTl31sOYvoWjA3PkGiP6WUvy?= X-MS-Exchange-CrossTenant-Network-Message-Id: 5338da36-ebe3-4ccc-0dcc-08d8deb9d7bd X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2021 03:01:44.6190 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DmUXDBRR4DOJPNeoQjH5cF7AhjmDZESjILAx3LYuwFeiR7GkiEVS8rmcC80kNDneRjVTMB3oGtnxmnpX+CinEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0617 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-04_01:2021-03-03,2021-03-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 impostorscore=0 suspectscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1011 lowpriorityscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103040010 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 2/25/21 2:56 PM, Chang, Abner (HPS SW/FW Technologist) wrote: > We unify build options to GCC:*_*_*_CC_FLAGS, but some options were added or removed to the specific arch > e.g. for GCC:*_*_IA32_CC_FLAGS, -ffreestanding, -nostdinc, -nostdlib are added additionally because of GCC:*_*_*_CC_FLAGS? As far as I can see GCC:*_*_IA32_CC_FLAGS had -ffreestanding, -nostdinc, -nostdlib even before. See below. Hence, no change with this patch. > For GCC:*_*_AARCH64_CC_FLAGS, some options were removed. Yes, -Wno-error=unused-function -Wno-error=unused-but-set-variable were removed for some platforms. But since all of the platforms already had -Wno-error (ignoring all errors), the build process shouldn't be affected. > Are those option changes affect the original build process? Are this the necessary changes? None of this is necessary but Leif requested me to clean up the flags in the last series of these patches. I don't see any changes to the build process for other platforms. Everything should be the same if I didn't make a mistake. > Abner > >> -----Original Message----- >> From: Schaefer, Daniel >> Sent: Tuesday, February 9, 2021 11:44 PM >> To: devel@edk2.groups.io >> Cc: G Edhaya Chandran ; Barton Gao >> ; Samer El-Haj-Mahmoud > Mahmoud@arm.com>; Eric Jin ; Arvin Chen >> ; Leif Lindholm ; Heinrich >> Schuchardt ; Chang, Abner (HPS SW/FW Technologist) >> >> Subject: [edk2-test PATCHv2 4/5] SctPkg: Unify CC_FLAGS for all GCC >> platforms >> >> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3042 >> >> Cc: G Edhaya Chandran >> Cc: Barton Gao >> Cc: Samer El-Haj-Mahmoud >> Cc: Eric Jin >> Cc: Arvin Chen >> Cc: Leif Lindholm >> Cc: Heinrich Schuchardt >> Cc: Abner Chang >> Signed-off-by: Daniel Schaefer >> --- >> uefi-sct/SctPkg/UEFI/IHV_SCT.dsc | 15 ++++++++------- uefi- >> sct/SctPkg/UEFI/UEFI_SCT.dsc | 15 ++++++++------- >> 2 files changed, 16 insertions(+), 14 deletions(-) >> >> diff --git a/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc b/uefi- >> sct/SctPkg/UEFI/IHV_SCT.dsc >> index 94bb5c36..91116ca7 100644 >> --- a/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc >> +++ b/uefi-sct/SctPkg/UEFI/IHV_SCT.dsc >> @@ -69,15 +69,16 @@ >> MSFT:*_*_X64_APP_FLAGS = /D EFIX64 >> MSFT:*_*_X64_PP_FLAGS = /D EFIX64 >> -# GCC:*_*_IA32_CC_FLAGS = -D EFI32 $(GCC_VER_MACRO) - >> ffreestanding -nostdinc -nostdlib -Wno-error -mno-red-zone -Wno-address - >> mno-stack-arg-probe "-DEFIAPI=__attribute__((ms_abi))" -m32 -mabi=ms - -ffreestanding, -nostdinc, -nostdlib already present. However it's commented out before and after, so either way it doesn't make a difference. >> D MDE_CPU_X32 >> - GCC:*_*_IA32_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -Wno-error >> + GCC:*_*_*_CC_FLAGS = -ffreestanding -nostdinc -nostdlib -Wno- >> error+# GCC:*_*_IA32_CC_FLAGS = -D EFI32 $(GCC_VER_MACRO) -mno- >> red-zone -Wno-address -mno-stack-arg-probe "- >> DEFIAPI=__attribute__((ms_abi))" -m32 -mabi=ms -D MDE_CPU_X32+ >> GCC:*_*_IA32_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_VFRPP_FLAGS = -D EFI32 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_APP_FLAGS = -D EFI32 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_PP_FLAGS = -D EFI32 $(GCC_VER_MACRO) -# >> GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -ffreestanding >> -nostdinc -nostdlib -Wno-error -mno-red-zone -Wno-address -mno-stack- >> arg-probe "-DEFIAPI=__attribute__((ms_abi))" -m64 -mcmodel=large - >> mabi=ms -D MDE_CPU_X64 >> +# GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -mno-red- >> zone -Wno-address -mno-stack-arg-probe "- >> DEFIAPI=__attribute__((ms_abi))" -m64 -mcmodel=large -mabi=ms -D >> MDE_CPU_X64 - GCC:*_*_X64_CC_FLAGS = -D EFIX64 >> $(GCC_VER_MACRO) -Wno-error + GCC:*_*_X64_CC_FLAGS = -D EFIX64 >> $(GCC_VER_MACRO) # GCC:*_*_X64_VFRPP_FLAGS = -D EFIX64 >> $(GCC_VER_MACRO) # GCC:*_*_X64_APP_FLAGS = -D EFIX64 >> $(GCC_VER_MACRO) # GCC:*_*_X64_PP_FLAGS = -D EFIX64 >> $(GCC_VER_MACRO)@@ -85,7 +86,7 @@ >> #TODO: OM - fixme RVCT:*_*_ARM_CC_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) *_*_ARM_CC_FLAGS = -D EFIARM- >> GCC:*_*_ARM_CC_FLAGS = -D EFIARM $(GCC_VER_MACRO) -fno-stack- >> protector -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function - >> Wno-error=unused-but-set-variable -Wno-error=implicit-function- >> declaration -Wno-error+ GCC:*_*_ARM_CC_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) -fno-stack-protector *_*_ARM_VFRPP_FLAGS = -D >> EFIARM $(GCC_VER_MACRO) *_*_ARM_APP_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) *_*_ARM_PP_FLAGS = -D EFIARM >> $(GCC_VER_MACRO)@@ -104,14 +105,14 @@ >> RVCT:*_*_ARM_CC_FLAGS = --diag_remark=167 -- >> diag_suppress=167,1295,188,550,1,68,111,177 *_*_AARCH64_CC_FLAGS >> = -D EFIAARCH64 $(GCC_VER_MACRO)- GCC:*_*_AARCH64_CC_FLAGS = - >> D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib - >> Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno- >> error+ GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak >> *_*_RISCV64_CC_FLAGS = -D EFIRISCV64 $(GCC_VER_MACRO)- >> GCC:*_*_RISCV64_CC_FLAGS = -D EFIRISCV64 $(GCC_VER_MACRO) - >> ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno- >> error=unused-but-set-variable -Wno-error+ GCC:*_*_RISCV64_CC_FLAGS >> = -D EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_VFRPP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_APP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_PP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO)diff --git a/uefi- >> sct/SctPkg/UEFI/UEFI_SCT.dsc b/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc >> index e13e40e4..3bb57d26 100644 >> --- a/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc >> +++ b/uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc >> @@ -72,14 +72,15 @@ >> MSFT:*_*_X64_APP_FLAGS = /D EFIX64 >> MSFT:*_*_X64_PP_FLAGS = /D EFIX64 >> -# GCC:*_*_IA32_CC_FLAGS = -D EFI32 $(GCC_VER_MACRO) - >> ffreestanding -nostdinc -nostdlib -Wno-error -mno-red-zone -Wno-address - >> mno-stack-arg-probe "-DEFIAPI=__attribute__((ms_abi))" -m32 -mabi=ms - >> D MDE_CPU_X32 >> - GCC:*_*_IA32_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -Wno-error >> + GCC:*_*_*_CC_FLAGS = -ffreestanding -nostdinc -nostdlib -Wno- >> error+# GCC:*_*_IA32_CC_FLAGS = -D EFI32 $(GCC_VER_MACRO) -mno- >> red-zone -Wno-address -mno-stack-arg-probe "- >> DEFIAPI=__attribute__((ms_abi))" -m32 -mabi=ms -D MDE_CPU_X32 >> + GCC:*_*_IA32_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_VFRPP_FLAGS = -D EFI32 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_APP_FLAGS = -D EFI32 $(GCC_VER_MACRO) # >> GCC:*_*_IA32_PP_FLAGS = -D EFI32 $(GCC_VER_MACRO) -# >> GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -ffreestanding >> -nostdinc -nostdlib -Wno-error -mno-red-zone -Wno-address -mno-stack- >> arg-probe "-DEFIAPI=__attribute__((ms_abi))" -m64 -mcmodel=large - >> mabi=ms -D MDE_CPU_X64 >> - GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -Wno-error >> +# GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) -mno-red- >> zone -Wno-address -mno-stack-arg-probe "- >> DEFIAPI=__attribute__((ms_abi))" -m64 -mcmodel=large -mabi=ms -D >> MDE_CPU_X64 >> + GCC:*_*_X64_CC_FLAGS = -D EFIX64 $(GCC_VER_MACRO) # >> GCC:*_*_X64_VFRPP_FLAGS = -D EFIX64 $(GCC_VER_MACRO) # >> GCC:*_*_X64_APP_FLAGS = -D EFIX64 $(GCC_VER_MACRO) # >> GCC:*_*_X64_PP_FLAGS = -D EFIX64 $(GCC_VER_MACRO)@@ -87,7 +88,7 >> @@ >> #TODO: OM - fixme RVCT:*_*_ARM_CC_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) *_*_ARM_CC_FLAGS = -D EFIARM- >> GCC:*_*_ARM_CC_FLAGS = -D EFIARM $(GCC_VER_MACRO) -fno-stack- >> protector -ffreestanding -nostdinc -nostdlib -Wno-error=unused-function - >> Wno-error=unused-but-set-variable -Wno-error=implicit-function- >> declaration -Wno-error+ GCC:*_*_ARM_CC_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) -fno-stack-protector *_*_ARM_VFRPP_FLAGS = -D >> EFIARM $(GCC_VER_MACRO) *_*_ARM_APP_FLAGS = -D EFIARM >> $(GCC_VER_MACRO) *_*_ARM_PP_FLAGS = -D EFIARM >> $(GCC_VER_MACRO)@@ -106,14 +107,14 @@ >> RVCT:*_*_ARM_CC_FLAGS = --diag_remark=167 -- >> diag_suppress=167,1295,188,550,1,68,111,177 *_*_AARCH64_CC_FLAGS >> = -D EFIAARCH64 $(GCC_VER_MACRO)- GCC:*_*_AARCH64_CC_FLAGS = - >> D EFIAARCH64 $(GCC_VER_MACRO) -ffreestanding -nostdinc -nostdlib - >> Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno- >> error+ GCC:*_*_AARCH64_CC_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_VFRPP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_APP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) *_*_AARCH64_PP_FLAGS = -D EFIAARCH64 >> $(GCC_VER_MACRO) RVCT:*_*_AARCH64_DLINK_FLAGS = --muldefweak >> *_*_RISCV64_CC_FLAGS = -D EFIRISCV64 $(GCC_VER_MACRO)- >> GCC:*_*_RISCV64_CC_FLAGS = -D EFIRISCV64 $(GCC_VER_MACRO) - >> ffreestanding -nostdinc -nostdlib -Wno-error=unused-function -Wno- >> error=unused-but-set-variable -Wno-error+ GCC:*_*_RISCV64_CC_FLAGS >> = -D EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_VFRPP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_APP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO) *_*_RISCV64_PP_FLAGS = -D >> EFIRISCV64 $(GCC_VER_MACRO)-- >> 2.30.0 >