summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2021-11-20 20:40:06 +0000
committerTomas Mraz <tomas@openssl.org>2022-11-09 15:29:59 +0100
commit923140bd0036ac629cbaa712fbc2d8c11f7854fa (patch)
tree488798c98fcfdf7dbd8bfd4549fd91d2355c8434 /Configurations
parent3d2b47bcdf8cf407ef1e459d54d4501cc19f0227 (diff)
Add support for BSD-ppc, BSD-ppc64 and BSD-ppc64le configurations
OpenSSL assumes AT_HWCAP = 16 (as on Linux), but on FreeBSD AT_HWCAP = 25 Switch to using AT_HWCAP, and setting it to 16 if it is not defined. CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17090) (cherry picked from commit f5485b97b6c9977c0d39c7669b9f97a879312447)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/10-main.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index b578a3c2a8..5ec9c61560 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -1077,6 +1077,31 @@ my %targets = (
perlasm_scheme => "linux64",
},
+ "BSD-ppc" => {
+ inherit_from => [ "BSD-generic32" ],
+ asm_arch => 'ppc32',
+ perlasm_scheme => "linux32",
+ lib_cppflags => add("-DB_ENDIAN"),
+ },
+
+ "BSD-ppc64" => {
+ inherit_from => [ "BSD-generic64" ],
+ cflags => add("-m64"),
+ cxxflags => add("-m64"),
+ lib_cppflags => add("-DB_ENDIAN"),
+ asm_arch => 'ppc64',
+ perlasm_scheme => "linux64",
+ },
+
+ "BSD-ppc64le" => {
+ inherit_from => [ "BSD-generic64" ],
+ cflags => add("-m64"),
+ cxxflags => add("-m64"),
+ lib_cppflags => add("-DL_ENDIAN"),
+ asm_arch => 'ppc64',
+ perlasm_scheme => "linux64le",
+ },
+
# riscv64 below refers to contemporary RISCV Architecture
# specifications,
"BSD-riscv64" => {