path: root/meta/recipes-connectivity/openssl/
diff options
authorJuro Bystricky <>2018-03-10 11:27:29 -0800
committerRichard Purdie <>2018-03-26 15:06:25 +0100
commit5a7cf3296715ac6543a171984fd09168bf73d1af (patch)
tree083c8cb11cf0ab4252a14f06ead7c6ea1842e7bf /meta/recipes-connectivity/openssl/
parentd06cf17109a2ca310c270ce4a27a15cb6190e2ff (diff)
openssl_1.0.2n: improve reproducibility
Improve reproducible build of: openssl-staticdev openssl-dbg libcrypto There are two main causes that prevent reproducible build, both related to the generated file "buildinf.h": 1. "buildinf.h" contains build host CFLAGS, containing various build host references. We need to pass sanitized CFLAGS to the script generating this file ("". ) 2. We also need to modify the script "" itsel in order to generate a build timestamp based on SOURCE_DATE_EPOCH, if present in the environment. (From OE-Core rev: 6c556ed3553d8f5e75d65cd7db92b26df43846b7) Signed-off-by: Juro Bystricky <> Signed-off-by: Richard Purdie <> Signed-off-by: Armin Kuster <>
Diffstat (limited to 'meta/recipes-connectivity/openssl/')
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/ b/meta/recipes-connectivity/openssl/
index 23f97d76b3..9335b0b8bd 100644
--- a/meta/recipes-connectivity/openssl/
+++ b/meta/recipes-connectivity/openssl/
@@ -156,6 +156,9 @@ do_configure () {
do_compile_prepend_class-target () {
sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile
+ oe_runmake depend
+ cc_sanitized=`echo "${CC} ${CFLAG}" | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' -e 's|${DEBUG_PREFIX_MAP}||g'`
+ oe_runmake CC_INFO="${cc_sanitized}"
do_compile () {