openssl: add compatibility with applications linking to v1.0.0 or higher

Our current OpenSSL libraries are only functional when applications link
against v1.0.2d or higher, making some packages containing pre-compiled
applications that link to older versions (like AWS Greengrass) fail to build
and/or run properly.

This commit includes:
	* Changing SHLIB_EXT from so.1.0.2 to so.1.0.0
	* Reverting the version-script to an older version with backwards
	  compatibility plus newer symbols

Specifically, these changes partially revert the patches added in the poky
layer's commits a59bfd05d15085a3dc5669b47fd19867246c846b and
73a43fc15e0463c39baaadecab78fb3ef51b8cd0 respectively.

Please note that this only modifies the cryptographic library's ABI, its code
remains unchanged.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2018-10-04 16:55:28 +02:00
parent 1497101245
commit 9442509ea2
2 changed files with 4680 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,14 @@ CRYPTOCHIP_COMMON_PATCHES = " \
file://0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch \ file://0003-Modify-openssl.cnf-to-automatically-load-the-cryptoc.patch \
" "
SRC_URI_remove = " \
file://debian1.0.2/version-script.patch \
file://debian1.0.2/soname.patch \
"
SRC_URI += " \ SRC_URI += " \
file://0001-cryptodev-Fix-issue-with-signature-generation.patch \ file://0001-cryptodev-Fix-issue-with-signature-generation.patch \
file://0002-cryptodev-allow-copying-EVP-contexts.patch \ file://0002-cryptodev-allow-copying-EVP-contexts.patch \
${@bb.utils.contains("MACHINE_FEATURES", "cryptochip", "${CRYPTOCHIP_COMMON_PATCHES}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "cryptochip", "${CRYPTOCHIP_COMMON_PATCHES}", "", d)} \
file://version-script.patch \
" "