summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSerhey Popovych <serhe.popovych@gmail.com>2018-12-14 19:54:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 22:27:39 +0000
commit67f6006b8e32e041dfd6305aba9110420e1f4d0e (patch)
tree31ddceb34b9af0e767849c84323123cfd4b059bf /meta
parenta5e7dae45ecd8ea48b57122e48e6590c006e7faf (diff)
downloadpoky-67f6006b8e32e041dfd6305aba9110420e1f4d0e.tar.gz
openssl: Skip assembler optimized code for powerpc64 with musl
This code is written for elfv1 ABI in mind and linked as such: disable all optimizations at the moment when building for powerpc64 with musl. (From OE-Core rev: bee9e807430178426b2a5635b573ae285e889c39) (From OE-Core rev: f2513232d9adb6ec9cf6de06d577aeb6e34b69e0) Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/openssl/openssl10_1.0.2p.bb1
-rw-r--r--meta/recipes-connectivity/openssl/openssl_1.1.1a.bb1
2 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl10_1.0.2p.bb b/meta/recipes-connectivity/openssl/openssl10_1.0.2p.bb
index 42f9bcfdcc..0925af3456 100644
--- a/meta/recipes-connectivity/openssl/openssl10_1.0.2p.bb
+++ b/meta/recipes-connectivity/openssl/openssl10_1.0.2p.bb
@@ -82,6 +82,7 @@ CCACHE = ""
82 82
83TERMIO ?= "-DTERMIO" 83TERMIO ?= "-DTERMIO"
84TERMIO_libc-musl = "-DTERMIOS" 84TERMIO_libc-musl = "-DTERMIOS"
85EXTRA_OECONF_append_libc-musl_powerpc64 = " no-asm"
85 86
86CFLAG = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \ 87CFLAG = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
87 ${TERMIO} ${CFLAGS} -Wall" 88 ${TERMIO} ${CFLAGS} -Wall"
diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb
index 8bc4a1e8ec..0fc385fc14 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb
@@ -34,6 +34,7 @@ do_configure[cleandirs] = "${B}"
34#| ./libcrypto.so: undefined reference to `setcontext' 34#| ./libcrypto.so: undefined reference to `setcontext'
35#| ./libcrypto.so: undefined reference to `makecontext' 35#| ./libcrypto.so: undefined reference to `makecontext'
36EXTRA_OECONF_append_libc-musl = " no-async" 36EXTRA_OECONF_append_libc-musl = " no-async"
37EXTRA_OECONF_append_libc-musl_powerpc64 = " no-asm"
37 38
38# This prevents openssl from using getrandom() which is not available on older glibc versions 39# This prevents openssl from using getrandom() which is not available on older glibc versions
39# (native versions can be built with newer glibc, but then relocated onto a system with older glibc) 40# (native versions can be built with newer glibc, but then relocated onto a system with older glibc)