2011-11-28 22:18:37 +00:00
require openssl . inc
# For target side versions of openssl enable support for OCF Linux driver
# if they are available .
2014-03-26 10:15:58 +00:00
DEPENDS + = " cryptodev-linux "
2011-11-28 22:18:37 +00:00
CFLAG + = " -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS "
2016-12-19 06:39:56 +00:00
CFLAG_append_class - native = " -fPIC "
2011-11-28 22:18:37 +00:00
2018-02-22 06:29:08 +00:00
LIC_FILES_CHKSUM = " file://LICENSE;md5=057d9218c6180e1d9ee407572b2dd225 "
2011-11-28 22:18:37 +00:00
export DIRS = " crypto ssl apps engines "
export OE_LDFLAGS = " ${LDFLAGS} "
2015-11-11 15:14:07 +00:00
SRC_URI + = " file://find.pl;subdir=${BP}/util/ \
file : / / run - ptest \
2016-05-23 20:45:25 +00:00
file : / / openssl - c_rehash . sh \
2015-11-11 15:14:07 +00:00
file : / / configure - targets . patch \
2011-11-28 22:18:37 +00:00
file : / / shared - libs . patch \
file : / / oe - ldflags . patch \
file : / / engines - install - in - libdir - ssl . patch \
2015-03-04 17:46:48 +00:00
file : / / debian1 . 0.2 / block_diginotar . patch \
file : / / debian1 . 0.2 / block_digicert_malaysia . patch \
2011-11-28 22:18:37 +00:00
file : / / debian / ca . patch \
2015-03-04 17:46:48 +00:00
file : / / debian / c_rehash - compat . patch \
file : / / debian / debian - targets . patch \
2011-11-28 22:18:37 +00:00
file : / / debian / man - dir . patch \
file : / / debian / man - section . patch \
2015-03-04 17:46:48 +00:00
file : / / debian / no - rpath . patch \
2011-11-28 22:18:37 +00:00
file : / / debian / no - symbolic . patch \
2015-03-04 17:46:48 +00:00
file : / / debian / pic . patch \
2016-03-02 07:38:41 +00:00
file : / / debian1 . 0.2 / version - script . patch \
2017-04-20 13:32:19 +00:00
file : / / debian1 . 0.2 / soname . patch \
2011-12-02 20:20:01 +00:00
file : / / openssl_fix_for_x32 . patch \
2014-03-28 09:42:45 +00:00
file : / / openssl - fix - des . pod - error . patch \
2014-04-24 17:28:25 +00:00
file : / / Makefiles - ptest . patch \
2014-06-09 15:37:19 +00:00
file : / / ptest - deps . patch \
2015-06-15 21:32:15 +00:00
file : / / openssl - 1. 0.2 a - x32 - asm . patch \
2017-03-20 16:47:33 +00:00
file : / / ptest_makefile_deps . patch \
2015-11-19 01:03:14 +00:00
file : / / configure - musl - target . patch \
2016-03-05 00:12:02 +00:00
file : / / parallel . patch \
2016-09-20 05:34:36 +00:00
file : / / openssl - util - perlpath . pl - cwd . patch \
2017-03-14 12:49:47 +00:00
file : / / Use - SHA256 - not - MD5 - as - default - digest . patch \
2017-03-20 16:47:33 +00:00
file : / / 0001 - Fix - build - with - clang - using - external - assembler . patch \
"
2018-02-22 06:29:08 +00:00
SRC_URI [ md5sum ] = " 13bdc1b1d1ff39b6fd42a255e74676a4 "
SRC_URI [ sha256sum ] = " 370babb75f278c39e0c50e8c4e7493bc0f18db6867478341a832a982fd15a8fe "
2011-11-28 22:18:37 +00:00
2015-12-15 16:32:43 +00:00
PACKAGES = + " ${PN}-engines "
2012-01-17 01:54:42 +00:00
FILES_ $ { PN } - engines = " ${libdir}/ssl/engines/*.so ${libdir}/engines "
2011-11-28 22:18:37 +00:00
2015-11-11 14:50:27 +00:00
# The crypto_use_bigint patch means that perl ' s bignum module needs to be
# installed , but some distributions ( for example Fedora 23 ) don ' t ship it by
# default . As the resulting error is very misleading check for bignum before
# building .
do_configure_prepend ( ) {
if ! perl - Mbigint - e true ; then
bbfatal " The perl module 'bignum' was not found but this is required to build openssl. Please install this module (often packaged as perl-bignum) and re-run bitbake. "
fi
}