summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-connectivity/openssl/openssl_3.5.0.bb19
1 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_3.5.0.bb b/meta/recipes-connectivity/openssl/openssl_3.5.0.bb
index 865e04deb2..fddc4dbc81 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.5.0.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.5.0.bb
@@ -31,6 +31,7 @@ PACKAGECONFIG[cryptodev-linux] = "enable-devcryptoeng,disable-devcryptoeng,crypt
31PACKAGECONFIG[no-tls1] = "no-tls1" 31PACKAGECONFIG[no-tls1] = "no-tls1"
32PACKAGECONFIG[no-tls1_1] = "no-tls1_1" 32PACKAGECONFIG[no-tls1_1] = "no-tls1_1"
33PACKAGECONFIG[manpages] = "" 33PACKAGECONFIG[manpages] = ""
34PACKAGECONFIG[fips] = "enable-fips"
34 35
35B = "${WORKDIR}/build" 36B = "${WORKDIR}/build"
36do_configure[cleandirs] = "${B}" 37do_configure[cleandirs] = "${B}"
@@ -154,7 +155,9 @@ do_compile:append () {
154} 155}
155 156
156do_install () { 157do_install () {
157 oe_runmake DESTDIR="${D}" MANDIR="${mandir}" MANSUFFIX=ssl install_sw install_ssldirs ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'install_docs', '', d)} 158 oe_runmake DESTDIR="${D}" MANDIR="${mandir}" MANSUFFIX=ssl install_sw install_ssldirs \
159 ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'install_docs', '', d)} \
160 ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'install_fips', '', d)}
158 161
159 oe_multilib_header openssl/opensslconf.h 162 oe_multilib_header openssl/opensslconf.h
160 oe_multilib_header openssl/configuration.h 163 oe_multilib_header openssl/configuration.h
@@ -172,6 +175,11 @@ do_install () {
172 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/certs')} ${D}${libdir}/ssl-3/certs 175 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/certs')} ${D}${libdir}/ssl-3/certs
173 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/private')} ${D}${libdir}/ssl-3/private 176 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/private')} ${D}${libdir}/ssl-3/private
174 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/openssl.cnf')} ${D}${libdir}/ssl-3/openssl.cnf 177 ln -sf ${@oe.path.relative('${libdir}/ssl-3', '${sysconfdir}/ssl/openssl.cnf')} ${D}${libdir}/ssl-3/openssl.cnf
178
179 # Generate fipsmodule.cnf in pkg_postinst_ontarget
180 if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', d)}; then
181 rm -f ${D}${libdir}/ssl-3/fipsmodule.cnf
182 fi
175} 183}
176 184
177do_install:append:class-native () { 185do_install:append:class-native () {
@@ -229,12 +237,18 @@ do_install_ptest() {
229 ln -s ${libdir}/ossl-modules/ ${D}${PTEST_PATH}/providers 237 ln -s ${libdir}/ossl-modules/ ${D}${PTEST_PATH}/providers
230} 238}
231 239
240pkg_postinst_ontarget:${PN}-ossl-module-fips () {
241 if test -f ${libdir}/ossl-modules/fips.so; then
242 ${bindir}/openssl fipsinstall -out ${libdir}/ssl-3/fipsmodule.cnf -module ${libdir}/ossl-modules/fips.so
243 fi
244}
245
232# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto 246# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto
233# package RRECOMMENDS on this package. This will enable the configuration 247# package RRECOMMENDS on this package. This will enable the configuration
234# file to be installed for both the openssl-bin package and the libcrypto 248# file to be installed for both the openssl-bin package and the libcrypto
235# package since the openssl-bin package depends on the libcrypto package. 249# package since the openssl-bin package depends on the libcrypto package.
236 250
237PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy" 251PACKAGES =+ "libcrypto libssl openssl-conf ${PN}-engines ${PN}-misc ${PN}-ossl-module-legacy ${PN}-ossl-module-fips"
238 252
239FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}" 253FILES:libcrypto = "${libdir}/libcrypto${SOLIBS}"
240FILES:libssl = "${libdir}/libssl${SOLIBS}" 254FILES:libssl = "${libdir}/libssl${SOLIBS}"
@@ -246,6 +260,7 @@ FILES:${PN}-engines = "${libdir}/engines-3"
246FILES:${PN}-engines:append:mingw32:class-nativesdk = " ${prefix}${libdir}/engines-3" 260FILES:${PN}-engines:append:mingw32:class-nativesdk = " ${prefix}${libdir}/engines-3"
247FILES:${PN}-misc = "${libdir}/ssl-3/misc ${bindir}/c_rehash" 261FILES:${PN}-misc = "${libdir}/ssl-3/misc ${bindir}/c_rehash"
248FILES:${PN}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so" 262FILES:${PN}-ossl-module-legacy = "${libdir}/ossl-modules/legacy.so"
263FILES:${PN}-ossl-module-fips = "${libdir}/ossl-modules/fips.so"
249FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/" 264FILES:${PN} =+ "${libdir}/ssl-3/* ${libdir}/ossl-modules/"
250FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" 265FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh"
251 266