diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-07-16 17:11:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-18 17:21:39 +0100 |
| commit | d237e9af27883d2b36ff97b94643f502b0523e2f (patch) | |
| tree | d6a51831d4da736bbf7527de4d97c7623ef6b42b | |
| parent | 776b78ae84a1afc6aa85114c42efa9d0f26a6da0 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl_3.3.1.bb | 6 |
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] = "" | |||
| 35 | B = "${WORKDIR}/build" | 35 | B = "${WORKDIR}/build" |
| 36 | do_configure[cleandirs] = "${B}" | 36 | do_configure[cleandirs] = "${B}" |
| 37 | 37 | ||
| 38 | EXTRA_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) |
| 46 | EXTRA_OECONF:class-native = "--with-rand-seed=os,devrandom" | 48 | EXTRA_OECONF:append:class-native = " --with-rand-seed=os,devrandom" |
| 47 | EXTRA_OECONF:class-nativesdk = "--with-rand-seed=os,devrandom" | 49 | EXTRA_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. |
| 50 | CFLAGS:append:class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin" | 52 | CFLAGS:append:class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin" |
