summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2024-07-16 17:11:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-18 17:21:39 +0100
commitd237e9af27883d2b36ff97b94643f502b0523e2f (patch)
treed6a51831d4da736bbf7527de4d97c7623ef6b42b /meta/recipes-connectivity
parent776b78ae84a1afc6aa85114c42efa9d0f26a6da0 (diff)
downloadpoky-d237e9af27883d2b36ff97b94643f502b0523e2f.tar.gz
openssl: disable tests unless ptest is enabled
The upstream Makefile always builds the tests unless they're explicitly disabled. Whilst this doesn't make a difference to the final package and sysroot output, disabling the tests for openssl-native reduces the size of the build tree from 659M to 78M and reduces the CPU time used by 30%. (From OE-Core rev: dfaf1cba9f30c6b07836fe217e1ebc83bc6aec8a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/openssl/openssl_3.3.1.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_3.3.1.bb b/meta/recipes-connectivity/openssl/openssl_3.3.1.bb
index 0ad84951e6..f8f2254153 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.3.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.3.1.bb
@@ -35,6 +35,8 @@ PACKAGECONFIG[manpages] = ""
35B = "${WORKDIR}/build" 35B = "${WORKDIR}/build"
36do_configure[cleandirs] = "${B}" 36do_configure[cleandirs] = "${B}"
37 37
38EXTRA_OECONF = "${@bb.utils.contains('PTEST_ENABLED', '1', '', 'no-tests', d)}"
39
38#| ./libcrypto.so: undefined reference to `getcontext' 40#| ./libcrypto.so: undefined reference to `getcontext'
39#| ./libcrypto.so: undefined reference to `setcontext' 41#| ./libcrypto.so: undefined reference to `setcontext'
40#| ./libcrypto.so: undefined reference to `makecontext' 42#| ./libcrypto.so: undefined reference to `makecontext'
@@ -43,8 +45,8 @@ EXTRA_OECONF:append:libc-musl:powerpc64 = " no-asm"
43 45
44# adding devrandom prevents openssl from using getrandom() which is not available on older glibc versions 46# adding devrandom prevents openssl from using getrandom() which is not available on older glibc versions
45# (native versions can be built with newer glibc, but then relocated onto a system with older glibc) 47# (native versions can be built with newer glibc, but then relocated onto a system with older glibc)
46EXTRA_OECONF:class-native = "--with-rand-seed=os,devrandom" 48EXTRA_OECONF:append:class-native = " --with-rand-seed=os,devrandom"
47EXTRA_OECONF:class-nativesdk = "--with-rand-seed=os,devrandom" 49EXTRA_OECONF:append:class-nativesdk = " --with-rand-seed=os,devrandom"
48 50
49# Relying on hardcoded built-in paths causes openssl-native to not be relocateable from sstate. 51# Relying on hardcoded built-in paths causes openssl-native to not be relocateable from sstate.
50CFLAGS:append:class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin" 52CFLAGS:append:class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin"