summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl10.inc
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-03-10 11:27:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-15 06:27:18 -0700
commit459f177c9e8f888e93663e1fddb16bb499ee9a0b (patch)
tree83c9d365ecb5d7f9352255cfb82d25993ca88b76 /meta/recipes-connectivity/openssl/openssl10.inc
parent58b5f8a221a4f56909234a39fbce886c1e723aa5 (diff)
downloadpoky-459f177c9e8f888e93663e1fddb16bb499ee9a0b.tar.gz
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 ("mkbuildinf.pl". ) 2. We also need to modify the script "mkbuildinf.pl" 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 <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl10.inc')
-rw-r--r--meta/recipes-connectivity/openssl/openssl10.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl10.inc b/meta/recipes-connectivity/openssl/openssl10.inc
index 02a0e16e97..0598195965 100644
--- a/meta/recipes-connectivity/openssl/openssl10.inc
+++ b/meta/recipes-connectivity/openssl/openssl10.inc
@@ -162,6 +162,9 @@ do_configure () {
162 162
163do_compile_prepend_class-target () { 163do_compile_prepend_class-target () {
164 sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile 164 sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile
165 oe_runmake depend
166 cc_sanitized=`echo "${CC} ${CFLAG}" | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' -e 's|${DEBUG_PREFIX_MAP}||g'`
167 oe_runmake CC_INFO="${cc_sanitized}"
165} 168}
166 169
167do_compile () { 170do_compile () {