openssl: add support for mingw64 as target

Submitted by luca.boccassi@gmail.com on Dec. 14, 2020, 4:07 p.m. | Patch ID: 178998

Details

Message ID 20201214160723.145124-1-luca.boccassi@gmail.com
State New
Headers show

Commit Message

luca.boccassi@gmail.com Dec. 14, 2020, 4:07 p.m.
From: Deepak Rawat <derawa@microsoft.com>


Engines are installed in a slightly different path, and
the host type doesn't precisely match in x86_64

Co-authored-by: Paul Eggleton <paul.eggleton@microsoft.com>
Co-authored-by: Deepak Rawat <derawa@microsoft.com>
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>

---
 meta/recipes-connectivity/openssl/openssl_1.1.1h.bb | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.29.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#145602): https://lists.openembedded.org/g/openembedded-core/message/145602
Mute This Topic: https://lists.openembedded.org/mt/78953706/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
index 1827167201..b8ba10e324 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1h.bb
@@ -113,6 +113,9 @@  do_configure () {
 	linux-sparc | linux-supersparc)
 		target=linux-sparcv9
 		;;
+	mingw32-x86_64)
+		target=mingw64
+		;;
 	esac
 
 	useprefix=${prefix}
@@ -195,6 +198,8 @@  FILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf \
                       ${libdir}/ssl-1.1/openssl.cnf* \
                       "
 FILES_${PN}-engines = "${libdir}/engines-1.1"
+# ${prefix} comes from what we pass into --prefix at configure time (which is used for INSTALLTOP)
+FILES_${PN}-engines_append_mingw32_class-nativesdk = " ${prefix}${libdir}/engines-1_1"
 FILES_${PN}-misc = "${libdir}/ssl-1.1/misc ${bindir}/c_rehash"
 FILES_${PN} =+ "${libdir}/ssl-1.1/*"
 FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh"