mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
openssl_1.0: avoid running make twice for target do_compile()
Currently target builds call make twice as part of do_compile(). It appears to be an accidental side effect of needing to only pass CC_INFO on the make command line for target builds, since CC_INFO is only referenced by the reproducible build patches. (From OE-Core rev: 6c4942b5c771876ad0e62e56923f59cc71776157) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1d7a9db53f
commit
46d81915f7
@@ -210,18 +210,18 @@ do_configure () {
|
||||
perl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=$libdirleaf $target
|
||||
}
|
||||
|
||||
do_compile_prepend_class-target () {
|
||||
do_compile () {
|
||||
oe_runmake depend
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_compile_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 () {
|
||||
oe_runmake depend
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_compile_ptest () {
|
||||
# build dependencies for test directory too
|
||||
export DIRS="$DIRS test"
|
||||
|
||||
Reference in New Issue
Block a user