From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web09.4917.1663916966829235784 for ; Fri, 23 Sep 2022 00:09:27 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lichao@loongson.cn) Received: from lichao-PC (unknown [10.40.24.149]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxrmujWy1jBoogAA--.42580S2; Fri, 23 Sep 2022 15:09:23 +0800 (CST) Date: Fri, 23 Sep 2022 15:09:23 +0800 From: "Chao Li" To: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Cc: "=?utf-8?Q?devel=40edk2.groups.io?=" Message-ID: <668E4D05-8373-48BD-B484-6ADD32507DE2@getmailspring.com> In-Reply-To: <20220914093630.3636435-8-lichao@loongson.cn> References: <20220914093630.3636435-8-lichao@loongson.cn> Subject: Re: [PATCH v2 07/34] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI. X-Mailer: Mailspring MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxrmujWy1jBoogAA--.42580S2 X-Coremail-Antispam: 1UD129KBjvAXoWfGFyDCr4fJr4UJrWxGF1rZwb_yoW8JF1rAo W7Gr4vgwsFk3s7GayS9wnxJr1qga9xW3WUJr48GF18GF92yrnrCay5Aw1fJryUXr1UAas8 JrZ5Wa9ayFZxKr18n29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73VFW2AGmfu7bjvjm3 AaLaJ3UjIYCTnIWjp_UUUY_7k0a2IF6w1UM7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0 x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj4 1l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0 I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjc xK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAY j202j2C_Jr0_Gr1l5I8CrVACY4xI64kE6c02F40Ex7xfMc02F40Ew4AK048IF2xKxVW8JV W5JwAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMx8GjcxK6IxK0xIIj40E5I8CrwCY02Avz4vE-s yl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWU GVWUWwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7V AKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42 IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUxeHqUUUUU X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQASCGMsUF0TtQARsu Content-Type: multipart/alternative; boundary="632d5ba3_759b8be5_dbe1" --632d5ba3_759b8be5_dbe1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jiewen, Jian, Xiaoyu and Guomin, This patch has not been reviewed, would you please review it=3F Thanks, Chao -------- On 9=E6=9C=88 14 2022, at 5:36 =E4=B8=8B=E5=8D=88, Chao Li wrote: > RE=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D4053 > > Add LOONGARCH64 architecture for EDK2 CI testing. > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Guomin Jiang > > Signed-off-by: Chao Li > --- > CryptoPkg/CryptoPkg.dsc =7C 3 ++- > CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf =7C 6 +++++- > CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf =7C 4 ++++ > CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf =7C 3 ++- > CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf =7C 3 ++- > CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf =7C 3 ++- > CryptoPkg/Library/Include/CrtLibSupport.h =7C 3 ++- > CryptoPkg/Library/OpensslLib/OpensslLib.inf =7C 2 ++ > CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf =7C 2 ++ > CryptoPkg/Library/TlsLib/TlsLib.inf =7C 3 ++- > CryptoPkg/Library/TlsLibNull/TlsLibNull.inf =7C 3 ++- > 11 files changed, 27 insertions(+), 8 deletions(-) > > diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc > index 50e7721f25..c3a02aafb0 100644 > --- a/CryptoPkg/CryptoPkg.dsc > +++ b/CryptoPkg/CryptoPkg.dsc > =40=40 -4,6 +4,7 =40=40 > =23 > > =23 Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<= BR> > =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -19,7 +20,7 =40=40 > PLAT=46ORM=5FVERSION =3D 0.98 > > DSC=5FSPECI=46ICATION =3D 0x00010005 > OUTPUT=5FDIRECTORY =3D Build/CryptoPkg > - SUPPORTED=5FARCHITECTURES =3D IA32=7CX64=7CARM=7CAARCH64=7CRISCV64 > + SUPPORTED=5FARCHITECTURES =3D IA32=7CX64=7CARM=7CAARCH64=7CRISCV64=7C= LOONGARCH64 > BUILD=5FTARGETS =3D DEBUG=7CRELEASE=7CNOOPT > SKUID=5FIDENTI=46IER =3D DE=46AULT > > > diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPk= g/Library/BaseCryptLib/BaseCryptLib.inf > index 3d7b917103..f8790d2c72 100644 > --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > =40=40 -8,6 +8,7 =40=40 > =23 > > =23 Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<= BR> > =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -24,7 +25,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BSources=5D > =40=40 -74,6 +75,9 =40=40 > =5BSources.RISCV64=5D > > Rand/CryptRand.c > > > +=5BSources.LOONGARCH64=5D > + Rand/CryptRand.c > + > =5BPackages=5D > MdePkg/MdePkg.dec > CryptoPkg/CryptoPkg.dec > diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/Crypt= oPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > index d28fb98b66..7da789d00e 100644 > --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > =40=40 -13,6 +13,7 =40=40 > =23 > > =23 Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<= BR> > =23 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -79,6 +80,9 =40=40 > =5BSources.RISCV64=5D > > Rand/CryptRand.c > > > +=5BSources.LOONGARCH64=5D > + Rand/CryptRand.c > + > =5BPackages=5D > MdePkg/MdePkg.dec > CryptoPkg/CryptoPkg.dec > diff --git a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf b/= CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf > index 63d1d82d19..1d8b502813 100644 > --- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf > +++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf > =40=40 -8,6 +8,7 =40=40 > =23 > > =23 Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<= BR> > =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -24,7 +25,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BSources=5D > diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.in= f b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf > index baa4433cbe..b4945de336 100644 > --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf > =40=40 -4,6 +4,7 =40=40 > =23 > > =23 Copyright (C) Microsoft Corporation. All rights reserved. > =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -22,7 +23,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BPackages=5D > diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.in= f b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf > index 038ca71890..e7d153db0b 100644 > --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf > =40=40 -4,6 +4,7 =40=40 > =23 > > =23 Copyright (C) Microsoft Corporation. All rights reserved. > =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -21,7 +22,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BPackages=5D > diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Libr= ary/Include/CrtLibSupport.h > index e49060124f..5072c343da 100644 > --- a/CryptoPkg/Library/Include/CrtLibSupport.h > +++ b/CryptoPkg/Library/Include/CrtLibSupport.h > =40=40 -4,6 +4,7 =40=40 > > > Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.
> Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
> +Copyright (c) 2022, Loongson Technology Corporation Limited. All right= s reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent > > > **/ > =40=40 -46,7 +47,7 =40=40 SPDX-License-Identifier: BSD-2-Clause-Patent > =23define CON=46IG=5FHEADER=5FBN=5FH > > > > =23if =21defined (SIXTY=5F=46OUR=5FBIT) && =21defined (THIRTY=5FTWO=5FB= IT) > - =23if defined (MDE=5FCPU=5FX64) =7C=7C defined (MDE=5FCPU=5FAARCH64) = =7C=7C defined (MDE=5FCPU=5FIA64) =7C=7C defined (MDE=5FCPU=5FRISCV64) > + =23if defined (MDE=5FCPU=5FX64) =7C=7C defined (MDE=5FCPU=5FAARCH64) = =7C=7C defined (MDE=5FCPU=5FIA64) =7C=7C defined (MDE=5FCPU=5FRISCV64) =7C= =7C defined (MDE=5FCPU=5FLOONGARCH64) > // > // With GCC we would normally use SIXTY=5F=46OUR=5FBIT=5FLONG, but MSVC= needs > // SIXTY=5F=46OUR=5FBIT, because 'long' is 32-bit and only 'long long' = is > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Li= brary/OpensslLib/OpensslLib.inf > index c899b811b1..f0ca72eeed 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > =40=40 -3,6 +3,7 =40=40 > =23 > > =23 Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<= BR> > =23 (C) Copyright 2020 Hewlett Packard Enterprise Development LP
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -675,6 +676,7 =40=40 > GCC:*=5F*=5FARM=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-error=3D= maybe-uninitialized -Wno-error=3Dunused-but-set-variable > > GCC:*=5F*=5FAARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-erro= r=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > GCC:*=5F*=5FRISCV64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-erro= r=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > + GCC:*=5F*=5FLOONGARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wn= o-error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-var= iable > GCC:*=5FCLANG35=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitia= lized > GCC:*=5FCLANG38=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitia= lized > GCC:*=5FCLANGPDB=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duniniti= alized -Wno-error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign = -Wno-error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-op= timize > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/Crypto= Pkg/Library/OpensslLib/OpensslLibCrypto.inf > index 0ec3724541..195016fd3d 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > =40=40 -3,6 +3,7 =40=40 > =23 > > =23 Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<= BR> > =23 (C) Copyright 2020 Hewlett Packard Enterprise Development LP
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -624,6 +625,7 =40=40 > GCC:*=5F*=5FARM=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-error=3D= maybe-uninitialized -Wno-error=3Dunused-but-set-variable > > GCC:*=5F*=5FAARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-erro= r=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > GCC:*=5F*=5FRISCV64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno-erro= r=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > + GCC:*=5F*=5FLOONGARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wn= o-error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-var= iable > GCC:*=5FCLANG35=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitia= lized > GCC:*=5FCLANG38=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitia= lized > GCC:*=5FCLANGPDB=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duniniti= alized -Wno-error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign = -Wno-error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-op= timize > diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf b/CryptoPkg/Library/Tl= sLib/TlsLib.inf > index bc61cda745..20b0ea6832 100644 > --- a/CryptoPkg/Library/TlsLib/TlsLib.inf > +++ b/CryptoPkg/Library/TlsLib/TlsLib.inf > =40=40 -3,6 +3,7 =40=40 > =23 > > =23 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<= BR> > =23 (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP > +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -19,7 +20,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BSources=5D > diff --git a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf b/CryptoPkg/Li= brary/TlsLibNull/TlsLibNull.inf > index b2920ddacf..12d7cc764a 100644 > --- a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf > +++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf > =40=40 -3,6 +3,7 =40=40 > =23 > > =23 Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<= BR> > =23 (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP > +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> =23 SPDX-License-Identifier: BSD-2-Clause-Patent > =23 > =23=23 > =40=40 -19,7 +20,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BSources=5D > -- > 2.27.0 > --632d5ba3_759b8be5_dbe1 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Jiewen, Jian, Xiaoyu and Guomin,
This patch has not been reviewed, wou= ld you please review it=3F


Tha= nks,
Chao
--------

On 9=E6=9C=88 14 2022, at 5:36 =E4=B8=8B=E5=8D= =88, Chao Li <lichao=40loongson.cn> wrote:
RE=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D4053
=
Add LOONGARCH64 architecture for EDK2 CI testing.

= Cc: Jiewen Yao <jiewen.yao=40intel.com>
Cc: Jian J Wang &= lt;jian.j.wang=40intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu=40i= ntel.com>
Cc: Guomin Jiang <guomin.jiang=40intel.com><= /div>
Signed-off-by: Chao Li <lichao=40loongson.cn>
---
CryptoPkg/CryptoPkg.dsc =7C 3 ++-
CryptoPkg/Li= brary/BaseCryptLib/BaseCryptLib.inf =7C 6 +++++-
CryptoPkg/Libr= ary/BaseCryptLib/RuntimeCryptLib.inf =7C 4 ++++
CryptoPkg/Libra= ry/BaseCryptLibNull/BaseCryptLibNull.inf =7C 3 ++-
CryptoPkg/Li= brary/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf =7C 3 ++-
Crypt= oPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf =7C 3 ++-
CryptoPkg/Library/Include/CrtLibSupport.h =7C 3 ++-
CryptoPkg= /Library/OpensslLib/OpensslLib.inf =7C 2 ++
CryptoPkg/Library/O= pensslLib/OpensslLibCrypto.inf =7C 2 ++
CryptoPkg/Library/TlsLi= b/TlsLib.inf =7C 3 ++-
CryptoPkg/Library/TlsLibNull/TlsLibNull.= inf =7C 3 ++-
11 files changed, 27 insertions(+), 8 deletions(-= )

diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPk= g.dsc
index 50e7721f25..c3a02aafb0 100644
--- a/Crypt= oPkg/CryptoPkg.dsc
+++ b/CryptoPkg/CryptoPkg.dsc
=40=40= -4,6 +4,7 =40=40
=23

=23 Copyright (c) 2009 - 20= 21, Intel Corporation. All rights reserved.<BR>

=23 C= opyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights = reserved.<BR>

+=23 Copyright (c) 2022, Loongson Techn= ology Corporation Limited. All rights reserved.<BR>

=23= SPDX-License-Identifier: BSD-2-Clause-Patent

=23

=
=23=23

=40=40 -19,7 +20,7 =40=40
PLAT=46ORM=5F= VERSION =3D 0.98

DSC=5FSPECI=46ICATION =3D 0x00010005
=
OUTPUT=5FDIRECTORY =3D Build/CryptoPkg

- SUPPORTED= =5FARCHITECTURES =3D IA32=7CX64=7CARM=7CAARCH64=7CRISCV64

+= SUPPORTED=5FARCHITECTURES =3D IA32=7CX64=7CARM=7CAARCH64=7CRISCV64=7CLOO= NGARCH64

BUILD=5FTARGETS =3D DEBUG=7CRELEASE=7CNOOPT
<= br>
SKUID=5FIDENTI=46IER =3D DE=46AULT



diff --g= it a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf b/CryptoPkg/Library/= BaseCryptLib/BaseCryptLib.inf
index 3d7b917103..f8790d2c72 1006= 44
--- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
<= div>+++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
=40=40= -8,6 +8,7 =40=40
=23

=23 Copyright (c) 2009 - 20= 22, Intel Corporation. All rights reserved.<BR>

=23 C= opyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights = reserved.<BR>

+=23 Copyright (c) 2022, Loongson Techn= ology Corporation Limited. All rights reserved.<BR>

=23= SPDX-License-Identifier: BSD-2-Clause-Patent

=23

=
=23=23

=40=40 -24,7 +25,7 =40=40
=23
=23 The following information is for reference only and not requir= ed by the build tools.

=23

-=23 VALID=5FARCHI= TECTURES =3D IA32 X64 ARM AARCH64 RISCV64

+=23 VALID=5FARCH= ITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

=23<= /div>


=5BSources=5D

=40=40 -74,6 +75,9 =40=40=
=5BSources.RISCV64=5D

Rand/CryptRand.c

=

+=5BSources.LOONGARCH64=5D

+ Rand/CryptRand.c<= /div>
+

=5BPackages=5D

MdePkg/MdePkg.= dec

CryptoPkg/CryptoPkg.dec

diff --git a/Cryp= toPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoPkg/Library/BaseCr= yptLib/RuntimeCryptLib.inf
index d28fb98b66..7da789d00e 100644<= /div>
--- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
<= div>+++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
=40= =40 -13,6 +13,7 =40=40
=23

=23 Copyright (c) 2009= - 2022, Intel Corporation. All rights reserved.<BR>

= =23 Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All ri= ghts reserved.<BR>

+=23 Copyright (c) 2022, Loongson = Technology Corporation Limited. All rights reserved.<BR>

<= div>=23 SPDX-License-Identifier: BSD-2-Clause-Patent

=23
=23=23

=40=40 -79,6 +80,9 =40=40
=5BS= ources.RISCV64=5D

Rand/CryptRand.c



+=5B= Sources.LOONGARCH64=5D

+ Rand/CryptRand.c

+
=5BPackages=5D

MdePkg/MdePkg.dec

CryptoPkg/CryptoPkg.dec

diff --git a/CryptoPkg/Library/Bas= eCryptLibNull/BaseCryptLibNull.inf b/CryptoPkg/Library/BaseCryptLibNull/B= aseCryptLibNull.inf
index 63d1d82d19..1d8b502813 100644
--- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
+++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
=40=40 -8,6 +8,7 =40=40
=23

=23 Copyright (c) 20= 09 - 2022, Intel Corporation. All rights reserved.<BR>

=23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All = rights reserved.<BR>
+=23 Copyright (c) 2022, Loongso= n Technology Corporation Limited. All rights reserved.<BR>
=23 SPDX-License-Identifier: BSD-2-Clause-Patent

=23<= /div>
=23=23

=40=40 -24,7 +25,7 =40=40
=23=

=23 The following information is for reference only and no= t required by the build tools.

=23

-=23 VALID= =5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64

+=23 VALI= D=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

<= div>=23



=5BSources=5D

diff --git a/Cr= yptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf b/CryptoPkg/Lib= rary/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
index baa4433cbe= ..b4945de336 100644
--- a/CryptoPkg/Library/BaseCryptLibOnProto= colPpi/DxeCryptLib.inf
+++ b/CryptoPkg/Library/BaseCryptLibOnPr= otocolPpi/DxeCryptLib.inf
=40=40 -4,6 +4,7 =40=40
=23=

=23 Copyright (C) Microsoft Corporation. All rights reserv= ed.

=23 Copyright (c) 2020, Hewlett Packard Enterprise Deve= lopment LP. All rights reserved.<BR>

+=23 Copyright (= c) 2022, Loongson Technology Corporation Limited. All rights reserved.<= ;BR>

=23 SPDX-License-Identifier: BSD-2-Clause-Patent
=23

=23=23

=40=40 -22,7 +23,7 =40= =40
=23

=23 The following information is for refe= rence only and not required by the build tools.

=23
-=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64
<= br>
+=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONG= ARCH64

=23



=5BPackages=5D

diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.i= nf b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
index 038ca71890..e7d153db0b 100644
--- a/CryptoPkg/Library/B= aseCryptLibOnProtocolPpi/PeiCryptLib.inf
+++ b/CryptoPkg/Librar= y/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
=40=40 -4,6 +4,7 =40= =40
=23

=23 Copyright (C) Microsoft Corporation. = All rights reserved.

=23 Copyright (c) 2020, Hewlett Packar= d Enterprise Development LP. All rights reserved.<BR>

+=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All ri= ghts reserved.<BR>
=23 SPDX-License-Identifier: BSD-2= -Clause-Patent

=23

=23=23

=40=40= -21,7 +22,7 =40=40
=23

=23 The following informa= tion is for reference only and not required by the build tools.

=
=23

-=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH6= 4 RISCV64

+=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH= 64 RISCV64 LOONGARCH64

=23



=5BPackage= s=5D

diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h= b/CryptoPkg/Library/Include/CrtLibSupport.h
index e49060124f..= 5072c343da 100644
--- a/CryptoPkg/Library/Include/CrtLibSupport= .h
+++ b/CryptoPkg/Library/Include/CrtLibSupport.h
=40= =40 -4,6 +4,7 =40=40


Copyright (c) 2010 - 2022, Intel C= orporation. All rights reserved.<BR>

Copyright (c) 20= 20, Hewlett Packard Enterprise Development LP. All rights reserved.<BR= >

+Copyright (c) 2022, Loongson Technology Corporation L= imited. All rights reserved.<BR>

SPDX-License-Identif= ier: BSD-2-Clause-Patent



**/

=40=40 -= 46,7 +47,7 =40=40 SPDX-License-Identifier: BSD-2-Clause-Patent
= =23define CON=46IG=5FHEADER=5FBN=5FH



=23if =21defin= ed (SIXTY=5F=46OUR=5FBIT) && =21defined (THIRTY=5FTWO=5FBIT)
- =23if defined (MDE=5FCPU=5FX64) =7C=7C defined (MDE=5FCPU=5FA= ARCH64) =7C=7C defined (MDE=5FCPU=5FIA64) =7C=7C defined (MDE=5FCPU=5FRIS= CV64)

+ =23if defined (MDE=5FCPU=5FX64) =7C=7C defined (MDE= =5FCPU=5FAARCH64) =7C=7C defined (MDE=5FCPU=5FIA64) =7C=7C defined (MDE=5F= CPU=5FRISCV64) =7C=7C defined (MDE=5FCPU=5FLOONGARCH64)

//<= /div>
// With GCC we would normally use SIXTY=5F=46OUR=5FBIT=5FLO= NG, but MSVC needs

// SIXTY=5F=46OUR=5FBIT, because 'long' = is 32-bit and only 'long long' is

diff --git a/CryptoPkg/Li= brary/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib= .inf
index c899b811b1..f0ca72eeed 100644
--- a/Crypto= Pkg/Library/OpensslLib/OpensslLib.inf
+++ b/CryptoPkg/Library/O= pensslLib/OpensslLib.inf
=40=40 -3,6 +3,7 =40=40
=23<= /div>
=23 Copyright (c) 2010 - 2020, Intel Corporation. All right= s reserved.<BR>

=23 (C) Copyright 2020 Hewlett Packar= d Enterprise Development LP<BR>

+=23 Copyright (c) 20= 22, Loongson Technology Corporation Limited. All rights reserved.<BR&g= t;

=23 SPDX-License-Identifier: BSD-2-Clause-Patent
=23

=23=23

=40=40 -675,6 +676,7 =40=40=
GCC:*=5F*=5FARM=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno= -error=3Dmaybe-uninitialized -Wno-error=3Dunused-but-set-variable
GCC:*=5F*=5FAARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -Wno= -error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-vari= able

GCC:*=5F*=5FRISCV64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46= LAGS) -Wno-error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-bu= t-set-variable

+ GCC:*=5F*=5FLOONGARCH64=5FCC=5F=46LAGS =3D= =24(OPENSSL=5F=46LAGS) -Wno-error=3Dmaybe-uninitialized -Wno-format -Wno= -error=3Dunused-but-set-variable

GCC:*=5FCLANG35=5F*=5FCC=5F= =46LAGS =3D -std=3Dc99 -Wno-error=3Duninitialized

GCC:*=5FC= LANG38=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitialized
=
GCC:*=5FCLANGPDB=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3D= uninitialized -Wno-error=3Dincompatible-pointer-types -Wno-error=3Dpointe= r-sign -Wno-error=3Dimplicit-function-declaration -Wno-error=3Dignored-pr= agma-optimize

diff --git a/CryptoPkg/Library/OpensslLib/Ope= nsslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
index 0ec3724541..195016fd3d 100644
--- a/CryptoPkg/Libr= ary/OpensslLib/OpensslLibCrypto.inf
+++ b/CryptoPkg/Library/Ope= nsslLib/OpensslLibCrypto.inf
=40=40 -3,6 +3,7 =40=40
= =23

=23 Copyright (c) 2010 - 2020, Intel Corporation. All r= ights reserved.<BR>

=23 (C) Copyright 2020 Hewlett Pa= ckard Enterprise Development LP<BR>

+=23 Copyright (c= ) 2022, Loongson Technology Corporation Limited. All rights reserved.<= BR>

=23 SPDX-License-Identifier: BSD-2-Clause-Patent
=23

=23=23

=40=40 -624,6 +625,7 =40= =40
GCC:*=5F*=5FARM=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -= Wno-error=3Dmaybe-uninitialized -Wno-error=3Dunused-but-set-variable
GCC:*=5F*=5FAARCH64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F=46LAGS) -= Wno-error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused-but-set-v= ariable

GCC:*=5F*=5FRISCV64=5FCC=5F=46LAGS =3D =24(OPENSSL=5F= =46LAGS) -Wno-error=3Dmaybe-uninitialized -Wno-format -Wno-error=3Dunused= -but-set-variable

+ GCC:*=5F*=5FLOONGARCH64=5FCC=5F=46LAGS = =3D =24(OPENSSL=5F=46LAGS) -Wno-error=3Dmaybe-uninitialized -Wno-format -= Wno-error=3Dunused-but-set-variable

GCC:*=5FCLANG35=5F*=5FC= C=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitialized

GCC:*= =5FCLANG38=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-error=3Duninitialized
GCC:*=5FCLANGPDB=5F*=5FCC=5F=46LAGS =3D -std=3Dc99 -Wno-erro= r=3Duninitialized -Wno-error=3Dincompatible-pointer-types -Wno-error=3Dpo= inter-sign -Wno-error=3Dimplicit-function-declaration -Wno-error=3Dignore= d-pragma-optimize

diff --git a/CryptoPkg/Library/TlsLib/Tls= Lib.inf b/CryptoPkg/Library/TlsLib/TlsLib.inf
index bc61cda745.= .20b0ea6832 100644
--- a/CryptoPkg/Library/TlsLib/TlsLib.inf
+++ b/CryptoPkg/Library/TlsLib/TlsLib.inf
=40=40 -3,6 += 3,7 =40=40
=23

=23 Copyright (c) 2016 - 2018, Int= el Corporation. All rights reserved.<BR>

=23 (C) Copy= right 2016-2020 Hewlett Packard Enterprise Development LP<BR>
=
+=23 Copyright (c) 2022, Loongson Technology Corporation Limited= . All rights reserved.<BR>

=23 SPDX-License-Identifie= r: BSD-2-Clause-Patent

=23

=23=23

=40=40 -19,7 +20,7 =40=40
=23

=23 The followin= g information is for reference only and not required by the build tools.<= /div>
=23

-=23 VALID=5FARCHITECTURES =3D IA32 X64 A= RM AARCH64 RISCV64

+=23 VALID=5FARCHITECTURES =3D IA32 X64 = ARM AARCH64 RISCV64 LOONGARCH64

=23



=5B= Sources=5D

diff --git a/CryptoPkg/Library/TlsLibNull/TlsLib= Null.inf b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
index b2= 920ddacf..12d7cc764a 100644
--- a/CryptoPkg/Library/TlsLibNull/= TlsLibNull.inf
+++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.in= f
=40=40 -3,6 +3,7 =40=40
=23

=23 Copyr= ight (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
=23 (C) Copyright 2016-2020 Hewlett Packard Enterprise Devel= opment LP<BR>

+=23 Copyright (c) 2022, Loongson Techn= ology Corporation Limited. All rights reserved.<BR>

=23= SPDX-License-Identifier: BSD-2-Clause-Patent

=23

=
=23=23

=40=40 -19,7 +20,7 =40=40
=23
=23 The following information is for reference only and not requir= ed by the build tools.

=23

-=23 VALID=5FARCHI= TECTURES =3D IA32 X64 ARM AARCH64 RISCV64

+=23 VALID=5FARCH= ITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

=23<= /div>


=5BSources=5D

--
2.27.0
--632d5ba3_759b8be5_dbe1--