diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2021-07-30 20:21:50 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2021-12-21 21:36:38 +0200 |
commit | ac8673ff85fe334913382b5cabb6cf3079b91e24 (patch) | |
tree | 5347c14d81f20dfe4de55db4d0fec0f151ed738f /package/libs/openssl/patches/110-openwrt_targets.patch | |
parent | 6e2556963d523ecef9a2a6130c899d146a3b7333 (diff) | |
download | upstream-ac8673ff85fe334913382b5cabb6cf3079b91e24.tar.gz upstream-ac8673ff85fe334913382b5cabb6cf3079b91e24.tar.bz2 upstream-ac8673ff85fe334913382b5cabb6cf3079b91e24.zip |
openssl: add ppc64 support
Backport an upstream patch that adds support for ELFv2 ABI on big endian
ppc64. As musl only supports ELFv2 ABI on ppc64 regardless of
endianness, this is required to be able to build OpenSSL for ppc64be.
Modify our targets patch to add linux-powerpc64-openwrt, which will use
the linux64v2 perlasm scheme. This will probably break the combination
ppc64 with glibc, but as we really only want to support musl, this
shouldn't be a problem.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'package/libs/openssl/patches/110-openwrt_targets.patch')
-rw-r--r-- | package/libs/openssl/patches/110-openwrt_targets.patch | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/libs/openssl/patches/110-openwrt_targets.patch b/package/libs/openssl/patches/110-openwrt_targets.patch index d0530b4661..828c14d21d 100644 --- a/package/libs/openssl/patches/110-openwrt_targets.patch +++ b/package/libs/openssl/patches/110-openwrt_targets.patch @@ -12,7 +12,7 @@ new file mode 100644 index 0000000000..86a86d31e4 --- /dev/null +++ b/Configurations/25-openwrt.conf -@@ -0,0 +1,48 @@ +@@ -0,0 +1,52 @@ +## Openwrt "CONFIG_ARCH" matching targets. + +# The targets need to end in '-openwrt' for the AFALG patch to work @@ -52,6 +52,10 @@ index 0000000000..86a86d31e4 + "linux-powerpc-openwrt" => { + inherit_from => [ "linux-ppc", "openwrt" ], + }, ++ "linux-powerpc64-openwrt" => { ++ inherit_from => [ "linux-ppc64", "openwrt" ], ++ perlasm_scheme => "linux64v2", ++ }, + "linux-x86_64-openwrt" => { + inherit_from => [ "linux-x86_64", "openwrt" ], + }, |