]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: Add LOONGARCH64 architecture for EDK2 CI.
authorChao Li <lichao@loongson.cn>
Fri, 10 Dec 2021 04:32:47 +0000 (12:32 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 14 Oct 2022 02:16:33 +0000 (02:16 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4053

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>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
CryptoPkg/CryptoPkg.dsc
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
CryptoPkg/Library/Include/CrtLibSupport.h
CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
CryptoPkg/Library/TlsLib/TlsLib.inf
CryptoPkg/Library/TlsLibNull/TlsLibNull.inf

index e4e7bc0dbfae8618833d7d5a67c9353a7d9b2ecc..8c6906acf00607eaae1206019e3aea32e1ee52c2 100644 (file)
@@ -4,6 +4,7 @@
 #\r
 #  Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -19,7 +20,7 @@
   PLATFORM_VERSION               = 0.98\r
   DSC_SPECIFICATION              = 0x00010005\r
   OUTPUT_DIRECTORY               = Build/CryptoPkg\r
-  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64\r
+  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64|LOONGARCH64\r
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
index 9634bd5fea258291d0f0bf2fa54d7cc5d1d99a82..8896e47095d2873b7690d1c4a8a2d6a5e944153a 100644 (file)
@@ -8,6 +8,7 @@
 #\r
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -24,7 +25,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Sources]\r
@@ -78,6 +79,9 @@
 [Sources.RISCV64]\r
   Rand/CryptRand.c\r
 \r
+[Sources.LOONGARCH64]\r
+  Rand/CryptRand.c\r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   CryptoPkg/CryptoPkg.dec\r
index 845708bf1a1b7fe32671527314d6c616e3eec5ae..bb66604e320f3607392408c4787a631ba03be8ce 100644 (file)
@@ -13,6 +13,7 @@
 #\r
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -80,6 +81,9 @@
 [Sources.RISCV64]\r
   Rand/CryptRand.c\r
 \r
+[Sources.LOONGARCH64]\r
+  Rand/CryptRand.c\r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   CryptoPkg/CryptoPkg.dec\r
index 9cb8d42ff45f20001915a6d7b377ac42e32c19e2..80afb62f7648722080783c8c0aae6f70375be7f9 100644 (file)
@@ -8,6 +8,7 @@
 #\r
 #  Copyright (c) 2009 - 2022, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -24,7 +25,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Sources]\r
index baa4433cbee8bbc04915e25859a92be1aa0b774f..b4945de336b6d994887f71f5077c26c2e892deb8 100644 (file)
@@ -4,6 +4,7 @@
 #\r
 # Copyright (C) Microsoft Corporation. All rights reserved.\r
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -22,7 +23,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64\r
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Packages]\r
index 038ca71890ddb34b6d64af225b55807bf4c42d58..e7d153db0b2a4e056a7dece511eb6901770644ad 100644 (file)
@@ -4,6 +4,7 @@
 #\r
 # Copyright (C) Microsoft Corporation. All rights reserved.\r
 # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -21,7 +22,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64\r
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Packages]\r
index e49060124ff6c2b7fecbd45d9a8e8673553c7ccd..5072c343da57f73506391548b36192063889afee 100644 (file)
@@ -4,6 +4,7 @@
 \r
 Copyright (c) 2010 - 2022, Intel Corporation. All rights reserved.<BR>\r
 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
+Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -46,7 +47,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define CONFIG_HEADER_BN_H\r
 \r
 #if !defined (SIXTY_FOUR_BIT) && !defined (THIRTY_TWO_BIT)\r
-  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64)\r
+  #if defined (MDE_CPU_X64) || defined (MDE_CPU_AARCH64) || defined (MDE_CPU_IA64) || defined (MDE_CPU_RISCV64) || defined (MDE_CPU_LOONGARCH64)\r
 //\r
 // With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needs\r
 // SIXTY_FOUR_BIT, because 'long' is 32-bit and only 'long long' is\r
index c899b811b149ecaeb83fa0eea02653295dd0c6a1..f0ca72eeed4febbf21b3c7f4cb45fed4ddaf8447 100644 (file)
@@ -3,6 +3,7 @@
 #\r
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>\r
 #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
   GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable\r
   GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
   GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
+  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
   GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized\r
   GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized\r
   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\r
index 0ec372454119eee4a8943fd0e71ff74b9112b161..195016fd3d01ff3a042c01dff4f3ccff4ef55270 100644 (file)
@@ -3,6 +3,7 @@
 #\r
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>\r
 #  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
   GCC:*_*_ARM_CC_FLAGS     = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=unused-but-set-variable\r
   GCC:*_*_AARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
   GCC:*_*_RISCV64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
+  GCC:*_*_LOONGARCH64_CC_FLAGS = $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-format -Wno-error=unused-but-set-variable\r
   GCC:*_CLANG35_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized\r
   GCC:*_CLANG38_*_CC_FLAGS = -std=c99 -Wno-error=uninitialized\r
   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\r
index bc61cda745566547c0d64aa10eadf1de2c3640fe..20b0ea683238caf4ea94fdbca12ba97d83fc7093 100644 (file)
@@ -3,6 +3,7 @@
 #\r
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -19,7 +20,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Sources]\r
index b2920ddacf3003fde9ef7fb4383e98975d8ddf24..12d7cc764ad837de00b8aa0d2ce29ed9096f6e90 100644 (file)
@@ -3,6 +3,7 @@
 #\r
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>\r
+#  Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -19,7 +20,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64\r
 #\r
 \r
 [Sources]\r