From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.23793.1678722437226821726 for ; Mon, 13 Mar 2023 08:47:18 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=NQkDe707; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678722437; x=1710258437; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=y6UPRfqLsf8QJ94m+qG2+1GWAlCnyv55etjH3YPw+wU=; b=NQkDe707SbbtNgwRi6sYYxG0IlsZegsfmmnceJcQKICU5RIb+HIGYaZd Xwqi4DT4E2Le7IU5t7gIt5RrK1dYiuFi5+ySXbvorD3IpE6V45giKbPZN xtZgugR38aiN5cSVw2ntXPmBIvYwHX2W4ZCbe+SL1t57vBnjQjreUmdGO efw/06eSYVWQIchtNMxwl0LRH2A5hgbYcrHdeCv8teqdxcpFY06qUcJij akQB7eRPyqB49oKC4UNke7Lya00M5EICzxjpRSCVhu89fgfzP1M8YAaDy fNtypZOHLsMTsR5b/+L7K/vcwAaruy4vpUBL7oJtgKoMf+BuXPl0e+ACk A==; X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="337204380" X-IronPort-AV: E=Sophos;i="5.98,257,1673942400"; d="scan'208";a="337204380" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2023 08:46:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10648"; a="767751461" X-IronPort-AV: E=Sophos;i="5.98,257,1673942400"; d="scan'208";a="767751461" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 13 Mar 2023 08:46:30 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 13 Mar 2023 08:46:29 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 13 Mar 2023 08:46:29 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 13 Mar 2023 08:46:29 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Mon, 13 Mar 2023 08:46:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VtZgnonCH0b+RafwPnAq4BhoEzWKoTjIZLN6hA56Rk4U7e3a3rs6hJ7wqqJ1vh1CQ2Pt2+xSZ4wr0uZ2X+BRwraJfsV+gLxl0ngQTZeKMHfqrT73rBqFb4neXaL+Jv6xeR7p4UI87QKup4eFXw9/Am6mF5OK3b4A0h7U7s/0SdXKihujX/2VRjGplKu8cLNVt7CKwVCuKnVcjhaO9WD0jxRC2bzZMTs+9Vr5SzSkMafBDejbhbA7XUcQGA+SOvnwSm4R5VxEuK/J7rEOrDMOCbmgiT7dHHW1MVHFp8SJQEOBYsjKZWj80tgmWwXuBluiA0PZxhZ0kz0kjMzbOKU4Jg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+BCN1yCMiTpBZJL17faueiGedN8FgbRr86ga26VTkPs=; b=jKrk1r+ZmPqorsJNrkQk+4lJhQFY9AGVT7kDAADQdLQbsjIcpr8QAH3LCRH/iKC3B60QULFQy9ziJutSzRWnxjDfe051ozG+3BUTYeDLlV4nWrGdvumu5Z8qQiyE4eQlx8LZbQbskCpD3/f1G27G91F+sAgAKOXCjBW14N2a7v/it7hf3gDNHWIoYn0oqSBqhuteJ6L0nD2q23+3C46EAalRmj039GgVvRfAkZ3nvdGE8akcH9mUA+0YlL1bQwCY8TjYMM8GAxPVBE6MscUso16aIJwTqTGyMe877RXLQYT3y2Bfb2QuIiyGfpcGgujQ5jN92oR8LXgwgRsD4joLhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SJ1PR11MB6227.namprd11.prod.outlook.com (2603:10b6:a03:45a::10) by PH7PR11MB7452.namprd11.prod.outlook.com (2603:10b6:510:27d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Mon, 13 Mar 2023 15:46:26 +0000 Received: from SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::afe8:db97:cbaf:cd17]) by SJ1PR11MB6227.namprd11.prod.outlook.com ([fe80::afe8:db97:cbaf:cd17%9]) with mapi id 15.20.6178.024; Mon, 13 Mar 2023 15:46:25 +0000 From: "Li, Yi" To: "devel@edk2.groups.io" , "kraxel@redhat.com" CC: "Wang, Jian J" , Pawel Polawski , "Lu, Xiaoyu1" , Ard Biesheuvel , "Jiang, Guomin" , "Yao, Jiewen" , Oliver Steffen , "Justen, Jordan L" Subject: Re: [edk2-devel] [PATCH 16/22] [hash] CryptoPkg/openssl: add OpensslLibHash.inf Thread-Topic: [edk2-devel] [PATCH 16/22] [hash] CryptoPkg/openssl: add OpensslLibHash.inf Thread-Index: AQHZVYY2Vy10csZjdEWvGzhWPCu7sa741trA Date: Mon, 13 Mar 2023 15:46:25 +0000 Message-ID: References: <20230313083016.136448-1-kraxel@redhat.com> <20230313083016.136448-17-kraxel@redhat.com> In-Reply-To: <20230313083016.136448-17-kraxel@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ1PR11MB6227:EE_|PH7PR11MB7452:EE_ x-ms-office365-filtering-correlation-id: 14e0c856-49ad-42f3-e23e-08db23da1a59 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iJiTRDeLSnCkZM6AO2Iwo2oDiNs2xPrbmpyiSAg4SHhqvk8u2NKQdF0mZ0iRxKKsMph9JTOTrIVuOyqnl4bQXE67O2OCtU9/DOKUp9+2Q0dgBel+AkPvUHp5is9+4E3568I/ibc2qwPfTFBcTR0d6JaR+wD0nhN6RiRby6yT4ngVOHSvX/W1v0CnHMykSAP5l4ac9HyoMo5Jf2qZGgOi2XBvoyswda9RTzDsQCPEQOBItYxwGph5y8uUp5FmZTdkK/n+x5WREx5ALyvwbasSYbYOXzTdpynl4uLi3GwJuvLVxfu538XmuRE4R5OPE9sP79LNdzWy92jkjphP+s+5I95Sbk43HULxpv9gP4efOfSAco5MY8A/MY1s72eYM60GFPdpj4tJbUeHdzNSz+cMFmryh+54eXGp40YGts7mVxlELKEE0z8VM8IzhPh+MrhHpRXiNwcfkUSeK6shCyKu8t92tBeMVfoxEG+DKoEUUCCd06LCeCZm4/U/WhBgMfVZFR483pI0Qoe9PAyw0U6lS9txhqTfT08KSWOkFqCfsRTPLHMrjTqwGeRIc1nEfhGYfiBefpeQ4EBaotjUhiha4ttxPchrv1mPc1H9j1STeDABKjpmU+JBaIwdXJCzBe77K7JBnZnEgfTm1o/IXZO1f7l6n4DMWvgZD+Hspe8Bd3H+aR9F8f1y/Jb6jyjbyThCvC5XYgHfMItix0J1qQSIGqTZNiD/2TL1QOcYymmjDglgSVQ5W82XaedjGTefGroJfGY27sorKEwTs+OyXCAFkA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR11MB6227.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(346002)(366004)(136003)(39860400002)(376002)(451199018)(5660300002)(83380400001)(186003)(478600001)(107886003)(71200400001)(6506007)(7696005)(966005)(26005)(53546011)(9686003)(66446008)(38070700005)(4326008)(66476007)(76116006)(8936002)(66556008)(52536014)(33656002)(66946007)(8676002)(64756008)(55016003)(86362001)(54906003)(110136005)(316002)(38100700002)(82960400001)(122000001)(41300700001)(2906002)(66899018)(545624008)(3714002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NKfVi7mEVC1AD/y8mtIVqfsHCt+TIM6Bm4kHEcKFpgV7aVqLYROS1cgRK9z1?= =?us-ascii?Q?mV0MfG/lu4Yi48Ahl56ljSMmCy/n4IWVpyR/1UUHEFiJ6/ugAp6wqUX7M2d7?= =?us-ascii?Q?zJ+ERfL762T9TKN08K5G8IHwCd88SDYyZAVp+bveOuutgJM6mZVyGvJF6vst?= =?us-ascii?Q?XWbQhXISCJI9HDKsc1oipAodE68pQfczs52lkRKsJIKwQahuYaCZ6ypj1NDf?= =?us-ascii?Q?z6Zn6Ccpm9kFriPruMSPi50U26abZdMwPAVtMFCsvvF4ZQpOLUnceR5IjppN?= =?us-ascii?Q?MAioDrzn6OfKFL4obAop6AZTskj16v5RcrtvV8E+ggNeUty9dLY85Kef1vam?= =?us-ascii?Q?5bbhSTkPxv/gUIPiiNR5sbMq4ZiFOaTpPf3r+H0Wo8j+BgF3fPX5h2fPrUPX?= =?us-ascii?Q?arcWcfc3fsyrp7LfNMdORZ5aGnd3P/pISuucpJGB4uV7iD077TzILSCj6D75?= =?us-ascii?Q?8MRbDfETC7PY5Py2vhvMQPx7d+tCXWYVb4iaC5I8XkC5IQhvgT/pdS4Ry7vV?= =?us-ascii?Q?o3YV0wpIQ7GF/yqlfjHoimKMFDLoVAa6VVQ+OtQZp7j4NH1Psbf4TWMqN4BI?= =?us-ascii?Q?mciUK+wYx9FwPn3VDsLzQsDOUe5d2Fdk2opJ4EIbcgDKR/B2VSxoO6n8vV9X?= =?us-ascii?Q?5+OrvdGx9okxyaLoKF7WHcuvzxQgj1nhXThIwq+SdIufEILtc0o+T2fKR7X6?= =?us-ascii?Q?m0rVJkVqO6NwGzWCA9MfgPtFjF2Q0vNZHmiWrJ4rCL8w1JgI6WFNw9n5XUXk?= =?us-ascii?Q?Rc63sNDcdmZxXuGdriw1aVZ3lsmGoOscW9nru20eAXUuOMmgaOePancXVpN4?= =?us-ascii?Q?cJcqkzlt1y8GMDCO3yn/OHppykVdd3UPhd94WVtcQ8NKnW+brI/8u65Oiouo?= =?us-ascii?Q?YtIykcPO9iB88Mc9xSIOJ9VywaFjjhdxC0qf/mYWHYgKyHsF6MQCGWlcvWPW?= =?us-ascii?Q?Mbv4XSdK1oKBQlERHz/Pm9zfAtEJBfvegIvbztj5uBJIIYN5i1gwNAHtpZJ3?= =?us-ascii?Q?+S2fgTIBejNpqhi0WOTFfEGbz2J6bSdgJVHn7NNbixuo07UsadBAgkWoBTa5?= =?us-ascii?Q?bIivOW+d4gOq2LGcTcDaf4jr4ZfER4nPIws1ZT+oM4m3D3vwojFEwjNl9d0g?= =?us-ascii?Q?cQUvcdsO5maOsRt7c3sVrCv3qctuK7Yw5tee/Pzhum3BAb58c4BmqbMEUudQ?= =?us-ascii?Q?7Bo6TCIK2nBJ1wz/O92bvONrm0RnDy0NmAxVt2EmVkrwBKdzirDW1Ir508s/?= =?us-ascii?Q?22KvRM+Dz8ImX8oKGd3WujH/l4dfUXfA0Mtsi5uz5GbJeUIEdje5s1vjkNvP?= =?us-ascii?Q?s5irHTcG28SkvBCsImruSziDZaII0HajWYNC6IXejaHSV+TJGNjXzzs6VQmt?= =?us-ascii?Q?Uenep9ZO67IMeSZ1iB7TuuGR0vD1h2mZMpwrJeiPF1Hlu+KGZWmrTLhr2SzW?= =?us-ascii?Q?0rwYPPjRn/6d+p6wS2pDeUUUxQDZUnoZrZf3zRFGDXy+KgvvY4m1UxfuUZvX?= =?us-ascii?Q?GPvx1ViWiSMbHaJqo3yrSBxB8lHuezE7E18SKOasm4wxCyZHevAzEqkBLB1Z?= =?us-ascii?Q?r3y2vkcYQUeVuKa0aMI=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ1PR11MB6227.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14e0c856-49ad-42f3-e23e-08db23da1a59 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2023 15:46:25.4373 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: L83hzQdPmZHuuyHsp6tT1NoBXQfBfGdplfRy+Mp/NpAbzVqJrG6Zs+ubBGQPs71E2HMBOhvFTmC3Ct2jVgVW2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7452 Return-Path: yi1.li@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable A bit confused here, why we need this inf, just to make it clear? As you mentioned, it doesn't help with binary file size. Regards, Yi=20 -----Original Message----- From: devel@edk2.groups.io On Behalf Of Gerd Hoffman= n Sent: Monday, March 13, 2023 4:30 PM To: devel@edk2.groups.io Cc: Wang, Jian J ; Pawel Polawski ; Lu, Xiaoyu1 ; Ard Biesheuvel ; Jiang, Guomin ; Gerd Hoffmann ; Yao, Jiewen ; Oliver Steffen ; Justen, Jordan L Subject: [edk2-devel] [PATCH 16/22] [hash] CryptoPkg/openssl: add OpensslLi= bHash.inf Add *.inf variant with hash functions only, to support SEC and PEI doing me= asurements. I don't think we really need this, using OpensslLibCrypto.inf and depending= on the linker dropping unused object files should work equally well. For = trouble-shooting it's handy though because you'll get linker errors instead= of bloated binaries. So not sure yet what to do with this ... Signed-off-by: Gerd Hoffmann --- .../Library/OpensslLib/OpensslLibHash.inf | 126 ++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 CryptoPkg/Library/OpensslLib/OpensslLibHash.inf diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibHash.inf b/CryptoPkg/Li= brary/OpensslLib/OpensslLibHash.inf new file mode 100644 index 000000000000..2d5838e682e9 --- /dev/null +++ b/CryptoPkg/Library/OpensslLib/OpensslLibHash.inf @@ -0,0 +1,126 @@ +## @file +# This module provides OpenSSL Library implementation with ECC and TLS=20 +# features removed and features have performance optimizations enabled. +# +# Copyright (c) 2010 - 2020, Intel Corporation. All rights=20 +reserved.
# (C) Copyright 2020 Hewlett Packard Enterprise=20 +Development LP
# Copyright (c) 2022, Loongson Technology=20 +Corporation Limited. All rights reserved.
# =20 +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D OpensslLibCrypto + MODULE_UNI_FILE =3D OpensslLibCrypto.uni + FILE_GUID =3D E29FC209-8B64-4500-BD20-AF4EAE47EA0E + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D OpensslLib + + DEFINE OPENSSL_PATH =3D openssl + DEFINE OPENSSL_GEN_PATH =3D openssl-gen + DEFINE OPENSSL_FLAGS =3D -DL_ENDIAN -DOPENSSL_SMALL_FOOTPRINT = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DEDK2_OPENSSL_NOEC= =3D1 -DOPENSSL_NO_ASM + DEFINE OPENSSL_FLAGS_NOASM =3D=20 + +# +# VALID_ARCHITECTURES =3D IA32 X64 ARM AARCH64 +# + +[Sources] +# Autogenerated files list starts here +# Autogenerated files list ends here + +[Packages] + MdePkg/MdePkg.dec + CryptoPkg/CryptoPkg.dec + +[LibraryClasses] + BaseLib + DebugLib + RngLib + +[LibraryClasses.ARM] + ArmSoftFloatLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings brought by=20 +openssl source, + # so we do not break the build with /WX option: + # C4090: 'function' : different 'const' qualifiers + # C4132: 'object' : const object should be initialized (tls13_enc.c) + # C4210: nonstandard extension used: function given file scope + # C4244: conversion from type1 to type2, possible loss of data + # C4245: conversion from type1 to type2, signed/unsigned mismatch + # C4267: conversion from size_t to type, possible loss of data + # C4306: 'identifier' : conversion from 'type1' to 'type2' of greater = size + # C4310: cast truncates constant value + # C4389: 'operator' : signed/unsigned mismatch (xxxx) + # C4700: uninitialized local variable 'name' used. (conf_sap.c(71)) + # C4702: unreachable code + # C4706: assignment within conditional expression + # C4819: The file contains a character that cannot be represented in t= he current code page + # + MSFT:*_*_IA32_CC_FLAGS =3D -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAG= S) $(OPENSSL_FLAGS_NOASM) /wd4090 /wd4132 /wd4210 /wd4244 /wd4245 /wd4267 /= wd4310 /wd4389 /wd4700 /wd4702 /wd4706 /wd4819 + MSFT:*_*_X64_CC_FLAGS =3D -U_WIN32 -U_WIN64 -U_MSC_VER $(OPENSSL_FLAG= S) $(OPENSSL_FLAGS_NOASM) /wd4090 /wd4132 /wd4210 /wd4244 /wd4245 /wd4267 /= wd4306 /wd4310 /wd4700 /wd4389 /wd4702 /wd4706 /wd4819 + + # + # Disable following Visual Studio 2015 compiler warnings brought by=20 + openssl source, # so we do not break the build with /WX option: + # C4718: recursive call has no side effects, deleting + # + MSFT:*_VS2015x86_IA32_CC_FLAGS =3D /wd4718 =20 + MSFT:*_VS2015x86_X64_CC_FLAGS =3D /wd4718 + + INTEL:*_*_IA32_CC_FLAGS =3D -U_WIN32 -U_WIN64 -U_MSC_VER -U__ICC $(OPEN= SSL_FLAGS) $(OPENSSL_FLAGS_NOASM) /w + INTEL:*_*_X64_CC_FLAGS =3D -U_WIN32 -U_WIN64 -U_MSC_VER -U__ICC $(OPEN= SSL_FLAGS) $(OPENSSL_FLAGS_NOASM) /w + + # + # Suppress the following build warnings in openssl so we don't break the= build with -Werror + # -Werror=3Dmaybe-uninitialized: there exist some other paths for whic= h the variable is not initialized. + # -Werror=3Dformat: Check calls to printf and scanf, etc., to make sur= e that the arguments supplied have + # types appropriate to the format string specified. + # -Werror=3Dunused-but-set-variable: Warn whenever a local variable is= assigned to, but otherwise unused (aside from its declaration). + # + GCC:*_*_IA32_CC_FLAGS =3D -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) $(OPENSS= L_FLAGS_NOASM) -Wno-error=3Dmaybe-uninitialized -Wno-error=3Dunused-but-set= -variable + GCC:*_*_X64_CC_FLAGS =3D -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) $(OPENSS= L_FLAGS_NOASM) -Wno-error=3Dmaybe-uninitialized -Wno-error=3Dformat -Wno-fo= rmat -Wno-error=3Dunused-but-set-variable -DNO_MSABI_VA_FUNCS + GCC:*_*_ARM_CC_FLAGS =3D $(OPENSSL_FLAGS) -Wno-error=3Dmaybe-uniniti= alized -Wno-error=3Dunused-but-set-variable + GCC:*_*_AARCH64_CC_FLAGS =3D $(OPENSSL_FLAGS)=20 + -Wno-error=3Dmaybe-uninitialized -Wno-format=20 + -Wno-error=3Dunused-but-set-variable -Wno-error=3Dformat =20 + GCC:*_*_RISCV64_CC_FLAGS =3D $(OPENSSL_FLAGS)=20 + -Wno-error=3Dmaybe-uninitialized -Wno-format=20 + -Wno-error=3Dunused-but-set-variable + GCC:*_*_LOONGARCH64_CC_FLAGS =3D $(OPENSSL_FLAGS)=20 + -Wno-error=3Dmaybe-uninitialized -Wno-format=20 + -Wno-error=3Dunused-but-set-variable + GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized =20 + GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized =20 + GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized=20 + -Wno-error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign=20 + -Wno-error=3Dimplicit-function-declaration=20 + -Wno-error=3Dignored-pragma-optimize + + # suppress the following warnings in openssl so we don't break the build= with warnings-as-errors: + # 1295: Deprecated declaration - give arg types # 550:=20 + was set but never used # 1293: assignment in condition # =20 + 111: statement is unreachable (invariably "break;" after "return X;" in c= ase statement) + # 68: integer conversion resulted in a change of sign ("if (Status =3D= =3D -1)") + # 177: was declared but never referenced # 223: function=20 + declared implicitly # 144: a value of type cannot be=20 + used to initialize an entity of type # 513: a value of type=20 + cannot be assigned to an entity of type # 188:=20 + enumerated type mixed with another type (i.e. passing an integer as an=20 + enum without a cast) # 1296: Extended constant initialiser used # =20 + 128: loop is not reachable - may be emitted inappropriately if code follo= ws a conditional return + # from the function that evaluates to true at compile time + # 546: transfer of control bypasses initialization - may be emitted ina= ppropriately if the uninitialized + # variable is never referenced after the jump + # 1: ignore "#1-D: last line of file ends without a newline" + # 3017: may be used before being set (NOTE: This was fixed in O= penSSL 1.1 HEAD with + # commit d9b8b89bec4480de3a10bdaf9425db371c19145b, and can be drop= ped then.) + XCODE:*_*_IA32_CC_FLAGS =3D -mmmx -msse -U_WIN32 -U_WIN64 $(OPENSSL_FL= AGS) $(OPENSSL_FLAGS_NOASM) -w -std=3Dc99 -Wno-error=3Duninitialized + XCODE:*_*_X64_CC_FLAGS =3D -mmmx -msse -U_WIN32 -U_WIN64 $(OPENSSL_FL= AGS) $(OPENSSL_FLAGS_NOASM) -w -std=3Dc99 -Wno-error=3Duninitialized + + # + # AARCH64 uses strict alignment and avoids SIMD registers for code=20 + that may execute # with the MMU off. This involves SEC, PEI_CORE and=20 + PEIM modules as well as BASE # libraries, given that they may be include= d into such modules. + # This library, even though of the BASE type, is never used in such=20 + cases, and # avoiding the SIMD register file (which is shared with=20 + the FPU) prevents the # compiler from successfully building some of=20 + the OpenSSL source files that # use floating point types, so clear the f= lags here. + # + GCC:*_*_AARCH64_CC_XIPFLAGS =3D=3D -- 2.39.2