public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Abner Chang" <abner.chang@hpe.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"lichao@loongson.cn" <lichao@loongson.cn>
Subject: Re: [edk2-devel] [staging/LoongArch RESEND PATCH v1 05/33] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
Date: Thu, 7 Apr 2022 02:24:35 +0000	[thread overview]
Message-ID: <PH7PR84MB1885D3DF6B99FD367615FE3DFFE69@PH7PR84MB1885.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20220209065250.2983803-1-lichao@loongson.cn>


Acked-by: Abner Chang <abner.chang@hpe.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Chao Li
> Sent: Wednesday, February 9, 2022 2:53 PM
> To: devel@edk2.groups.io
> Cc: Jiewen Yao <jiewen.yao@intel.com>; Jian J Wang
> <jian.j.wang@intel.com>; Xiaoyu Lu <xiaoyu1.lu@intel.com>; Guomin Jiang
> <guomin.jiang@intel.com>
> Subject: [edk2-devel] [staging/LoongArch RESEND PATCH v1 05/33]
> CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
> 
> Add LOONGARCH64 architecture for EDK2 CI testing.
> 
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
> Cc: Guomin Jiang <guomin.jiang@intel.com>
> 
> Signed-off-by: Chao Li <lichao@loongson.cn>
> ---
>  CryptoPkg/CryptoPkg.dsc                                     | 3 ++-
>  CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf             | 6 +++++-
>  CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf          | 4 ++++
>  CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf     | 3 ++-
>  CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf | 3 ++-
>  CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf | 3 ++-
>  CryptoPkg/Library/Include/CrtLibSupport.h                   | 3 ++-
>  CryptoPkg/Library/OpensslLib/OpensslLib.inf                 | 2 ++
>  CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf           | 2 ++
>  CryptoPkg/Library/TlsLib/TlsLib.inf                         | 3 ++-
>  CryptoPkg/Library/TlsLibNull/TlsLibNull.inf                 | 3 ++-
>  11 files changed, 27 insertions(+), 8 deletions(-)
> 
> diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc
> index 0aa72ed878..f7170c6719 100644
> --- a/CryptoPkg/CryptoPkg.dsc
> +++ b/CryptoPkg/CryptoPkg.dsc
> @@ -4,6 +4,7 @@
>  #
>  #  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
>  #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -19,7 +20,7 @@
>    PLATFORM_VERSION               = 0.98
>    DSC_SPECIFICATION              = 0x00010005
>    OUTPUT_DIRECTORY               = Build/CryptoPkg
> -  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64
> +  SUPPORTED_ARCHITECTURES        =
> IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64
>    BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT
>    SKUID_IDENTIFIER               = DEFAULT
> 
> diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> index 49703fa4c9..fcc2f28701 100644
> --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
> @@ -8,6 +8,7 @@
>  #
>  #  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
>  #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -24,7 +25,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> +#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Sources]
> @@ -73,6 +74,9 @@
>  [Sources.RISCV64]
>    Rand/CryptRand.c
> 
> +[Sources.LOONGARCH64]
> +  Rand/CryptRand.c
> +
>  [Packages]
>    MdePkg/MdePkg.dec
>    CryptoPkg/CryptoPkg.dec
> diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> index fdbb6edfd2..c76ec56e86 100644
> --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
> @@ -13,6 +13,7 @@
>  #
>  #  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
>  #  Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -78,6 +79,9 @@
>  [Sources.RISCV64]
>    Rand/CryptRand.c
> 
> +[Sources.LOONGARCH64]
> +  Rand/CryptRand.c
> +
>  [Packages]
>    MdePkg/MdePkg.dec
>    CryptoPkg/CryptoPkg.dec
> diff --git a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> index faf959827b..271b29819c 100644
> --- a/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> +++ b/CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
> @@ -8,6 +8,7 @@
>  #
>  #  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>
>  #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -24,7 +25,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> +#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Sources]
> diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> index baa4433cbe..b4945de336 100644
> --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
> @@ -4,6 +4,7 @@
>  #
>  # Copyright (C) Microsoft Corporation. All rights reserved.
>  # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  # SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -22,7 +23,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Packages]
> diff --git a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> index 038ca71890..e7d153db0b 100644
> --- a/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> +++ b/CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
> @@ -4,6 +4,7 @@
>  #
>  # Copyright (C) Microsoft Corporation. All rights reserved.
>  # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  # SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -21,7 +22,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> +# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Packages]
> diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h
> b/CryptoPkg/Library/Include/CrtLibSupport.h
> index d257dca8fa..d1e7b37c36 100644
> --- a/CryptoPkg/Library/Include/CrtLibSupport.h
> +++ b/CryptoPkg/Library/Include/CrtLibSupport.h
> @@ -4,6 +4,7 @@
> 
>  Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.<BR>
>  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -45,7 +46,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
>  #define CONFIG_HEADER_BN_H
> 
>  #if !defined (SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT)
> -  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined
> (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64)
> +  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined
> (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64) || defined
> (MDE_CPU_LOONGARCH64)
>  //
>  // With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC
> needs
>  // SIXTY_FOUR_BIT, because 'long' is 32-bit and only 'long long' is
> diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> index d84bde056a..bf606d8751 100644
> --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
> @@ -3,6 +3,7 @@
>  #
>  #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
>  #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -622,6 +623,7 @@
>    GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-error=unused-but-set-variable
>    GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-format -Wno-error=unused-but-set-variable
>    GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-format -Wno-error=unused-but-set-variable
> +  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-
> error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-
> variable
>    GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
>    GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
>    GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -
> Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-
> error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
> diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> index cdeed0d073..ebb480c278 100644
> --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
> @@ -3,6 +3,7 @@
>  #
>  #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
>  #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -571,6 +572,7 @@
>    GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-error=unused-but-set-variable
>    GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-format -Wno-error=unused-but-set-variable
>    GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-
> uninitialized -Wno-format -Wno-error=unused-but-set-variable
> +  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-
> error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-
> variable
>    GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
>    GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized
>    GCC:*_CLANGPDB_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized -
> Wno-error=incompatible-pointer-types -Wno-error=pointer-sign -Wno-
> error=implicit-function-declaration -Wno-error=ignored-pragma-optimize
> diff --git a/CryptoPkg/Library/TlsLib/TlsLib.inf
> b/CryptoPkg/Library/TlsLib/TlsLib.inf
> index 27209f4d7f..e63e268411 100644
> --- a/CryptoPkg/Library/TlsLib/TlsLib.inf
> +++ b/CryptoPkg/Library/TlsLib/TlsLib.inf
> @@ -3,6 +3,7 @@
>  #
>  #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
>  #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -19,7 +20,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> +#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Sources]
> diff --git a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> index b2920ddacf..12d7cc764a 100644
> --- a/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> +++ b/CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
> @@ -3,6 +3,7 @@
>  #
>  #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
>  #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>
> +#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights
> reserved.<BR>
>  #  SPDX-License-Identifier: BSD-2-Clause-Patent
>  #
>  ##
> @@ -19,7 +20,7 @@
>  #
>  # The following information is for reference only and not required by the
> build tools.
>  #
> -#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> +#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64
> LOONGARCH64
>  #
> 
>  [Sources]
> --
> 2.27.0
> 
> 
> 
> 
> 


      reply	other threads:[~2022-04-07  2:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09  6:52 [staging/LoongArch RESEND PATCH v1 05/33] CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI Chao Li
2022-04-07  2:24 ` Abner Chang [this message]

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=PH7PR84MB1885D3DF6B99FD367615FE3DFFE69@PH7PR84MB1885.NAMPRD84.PROD.OUTLOOK.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