Skip to contentSkip to conversation

openssl: add support for mingw64 as target

PATCH New Luca Bocassi 1 participant 1 message Dec 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: add support for mingw64 as target

From: Deepak Rawat <[email protected]>

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

---
 meta/recipes-connectivity/openssl/openssl_1.1.1h.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-connectivity/openssl/openssl_1.1.1h.bb +5 -0
index 1827167201..b8ba10e324 100644
@@ -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"
Signature · 1 line
2.29.2