]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg: Add RISC-V architecture for EDK2 CI.
authorAbner Chang <abner.chang@hpe.com>
Fri, 27 Mar 2020 03:08:01 +0000 (11:08 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 3 Apr 2020 17:09:12 +0000 (17:09 +0000)
Add RISC-V architecture for EDK2 CI testing.

BZ:2562:
https://bugzilla.tianocore.org/show_bug.cgi?id=2562

Signed-off-by: Abner Chang <abner.chang@hpe.com>
Co-authored-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Reviewed-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Gilbert Chen <gilbert.chen@hpe.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 4cb37b1349b49278d43c3eda9ed9d8873e10eda3..f79ff331cf6912182b7318ea57cd8fda128cd8f8 100644 (file)
@@ -3,6 +3,7 @@
 #  PEIM, DXE Driver, and SMM Driver with all crypto services enabled.\r
 #\r
 #  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -18,7 +19,7 @@
   PLATFORM_VERSION               = 0.98\r
   DSC_SPECIFICATION              = 0x00010005\r
   OUTPUT_DIRECTORY               = Build/CryptoPkg\r
-  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64\r
+  SUPPORTED_ARCHITECTURES        = IA32|X64|ARM|AARCH64|RISCV64\r
   BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
index 1bbe4f435aec09d5b6fdc55e830d4e3da9b47c23..a63ad66b4f09e085a0c7a7d74a2f32be75150e78 100644 (file)
@@ -7,6 +7,7 @@
 #  buffer overflow or integer overflow.\r
 #\r
 #  Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -23,7 +24,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Sources]\r
@@ -72,6 +73,9 @@
 [Sources.AARCH64]\r
   Rand/CryptRand.c\r
 \r
+[Sources.RISCV64]\r
+  Rand/CryptRand.c\r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   CryptoPkg/CryptoPkg.dec\r
index bff308a4f5e3fef2d50ee6c5b576199d770f823f..e5b8ececc1ec16bf6992d070bdf68c158eb05013 100644 (file)
@@ -12,6 +12,7 @@
 #  authenticode signature verification functions are not supported in this instance.\r
 #\r
 #  Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -77,6 +78,9 @@
 [Sources.AARCH64]\r
   Rand/CryptRand.c\r
 \r
+[Sources.RISCV64]\r
+  Rand/CryptRand.c\r
+\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
   CryptoPkg/CryptoPkg.dec\r
index 8f53b0dfd07e5c4be2e5a730134b1c98e884df1a..9b4991cbb004b4b284a90936e36b9c5dce7d0643 100644 (file)
@@ -7,6 +7,7 @@
 #  buffer overflow or integer overflow.\r
 #\r
 #  Copyright (c) 2009 - 2020, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -23,7 +24,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Sources]\r
index 9282b0fd6b52e982ddd4cc9e37e8c88112931dba..baa4433cbee8bbc04915e25859a92be1aa0b774f 100644 (file)
@@ -3,6 +3,7 @@
 # Protocol.\r
 #\r
 # Copyright (C) Microsoft Corporation. All rights reserved.\r
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. 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\r
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Packages]\r
index 5c56e3320e38d22080c69bfdf9384b28fc9c3089..038ca71890ddb34b6d64af225b55807bf4c42d58 100644 (file)
@@ -3,6 +3,7 @@
 # PPI.\r
 #\r
 # Copyright (C) Microsoft Corporation. All rights reserved.\r
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -20,7 +21,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64\r
+# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Packages]\r
index 5a20ba636fffe7934794aecce10048fc684128cf..7a82f1d40633d778f05d5e20ebfebad12da32fe9 100644 (file)
@@ -3,6 +3,7 @@
   cryptographic library.\r
 \r
 Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -43,7 +44,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 #define CONFIG_HEADER_BN_H\r
 \r
-#if defined(MDE_CPU_X64) || defined(MDE_CPU_AARCH64) || defined(MDE_CPU_IA64)\r
+#if defined(MDE_CPU_X64) || defined(MDE_CPU_AARCH64) || defined(MDE_CPU_IA64) || defined(MDE_CPU_RISCV64)\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 3519a6688553e349047a032358a0ca073f139aa9..9ed01755535c959ba277574d9133881dfaf0c56d 100644 (file)
@@ -2,6 +2,7 @@
 #  This module provides OpenSSL Library implementation.\r
 #\r
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>\r
+#  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
   GCC:*_*_X64_CC_FLAGS     = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=format -Wno-format -Wno-error=unused-but-set-variable -DNO_MSABI_VA_FUNCS\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=format -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 8a723cb8cdf583405aa1f2c14422b09ff87be3d1..03da26662757a00877b80aeec297cc1866761bea 100644 (file)
@@ -2,6 +2,7 @@
 #  This module provides OpenSSL Library implementation.\r
 #\r
 #  Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>\r
+#  (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
   GCC:*_*_X64_CC_FLAGS     = -U_WIN32 -U_WIN64 $(OPENSSL_FLAGS) -Wno-error=maybe-uninitialized -Wno-error=format -Wno-format -Wno-error=unused-but-set-variable -DNO_MSABI_VA_FUNCS\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:*_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 2f3ce695c33ea7a3ff53feb2970696e3a98d59e9..27209f4d7fe379265ecb9d153f859efd173f7cfa 100644 (file)
@@ -2,7 +2,7 @@
 #  SSL/TLS Wrapper Library Instance based on OpenSSL.\r
 #\r
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
-#  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
+#  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -19,7 +19,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Sources]\r
index 33f0e7493f46d5d51bb1d3be2b54197249094ad1..b2920ddacf3003fde9ef7fb4383e98975d8ddf24 100644 (file)
@@ -2,7 +2,7 @@
 #  SSL/TLS Wrapper Null Library Instance.\r
 #\r
 #  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
-#  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
+#  (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP<BR>\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -19,7 +19,7 @@
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64\r
+#  VALID_ARCHITECTURES           = IA32 X64 ARM AARCH64 RISCV64\r
 #\r
 \r
 [Sources]\r