* [meta-mingw][sumo][PATCH 0/1] openssl for Windows
@ 2018-07-11 22:42 Juro Bystricky
2018-07-11 22:42 ` [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw Juro Bystricky
2018-07-12 6:11 ` [meta-mingw][sumo][PATCH 0/1] openssl for Windows Alexander Kanavin
0 siblings, 2 replies; 5+ messages in thread
From: Juro Bystricky @ 2018-07-11 22:42 UTC (permalink / raw)
To: yocto; +Cc: alejandr, jurobystricky
Patch to allow building openssl for Windows.
openssl can also become part of SDK, i.e:
SDKMACHINE="x86_64-mingw32"
MACHINE = "qemux86-64"
TOOLCHAIN_HOST_TASK_append = " nativesdk-openssl "
Juro Bystricky (1):
openssl: build for mingw
.../openssl/openssl/mingw-targets.patch | 13 +++++++++++++
recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch
create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
--
2.7.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw
2018-07-11 22:42 [meta-mingw][sumo][PATCH 0/1] openssl for Windows Juro Bystricky
@ 2018-07-11 22:42 ` Juro Bystricky
2018-07-12 16:54 ` Burton, Ross
2018-07-12 6:11 ` [meta-mingw][sumo][PATCH 0/1] openssl for Windows Alexander Kanavin
1 sibling, 1 reply; 5+ messages in thread
From: Juro Bystricky @ 2018-07-11 22:42 UTC (permalink / raw)
To: yocto; +Cc: alejandr, jurobystricky
Build openssl.exe and several .dll files needed to run openssl
under Windows
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
.../openssl/openssl/mingw-targets.patch | 13 +++++++++++++
recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch
create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
diff --git a/recipes-connectivity/openssl/openssl/mingw-targets.patch b/recipes-connectivity/openssl/openssl/mingw-targets.patch
new file mode 100644
index 0000000..a9d98db
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl/mingw-targets.patch
@@ -0,0 +1,13 @@
+--- a/Configure
++++ b/Configure
+@@ -672,6 +668,10 @@ my %table=(
+
+ # MinGW
+ "mingw", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
++"mingw32-x86_64","gcc:-mno-cygwin -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE::-D_MT:MINGW64:-lws2_32 -lgdi32 -lcrypt32:SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${x86_64_asm}:mingw64:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll.a",
++"i686-pokysdk-mingw32", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
++"mingw32-i686", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i686 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
++
+ # As for OPENSSL_USE_APPLINK. Applink makes it possible to use .dll
+ # compiled with one compiler with application compiled with another
+ # compiler. It's possible to engage Applink support in mingw64 build,
diff --git a/recipes-connectivity/openssl/openssl_1.0.2o.bbappend b/recipes-connectivity/openssl/openssl_1.0.2o.bbappend
new file mode 100644
index 0000000..0e4485c
--- /dev/null
+++ b/recipes-connectivity/openssl/openssl_1.0.2o.bbappend
@@ -0,0 +1,19 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_mingw32 = " file://mingw-targets.patch"
+
+EXTRA_LIBS_mingw32 = "-lws2_32 -lgdi32 -lcrypt32 -lgcc"
+
+CFLAG_remove_mingw32 = " -DTERMIO"
+CFLAG_remove_mingw32 = " -DHAVE_CRYPTODEV"
+CFLAG_remove_mingw32 = " -Wa,--noexecstack"
+CFLAG_append_mingw32 = " -DNOCRYPT -mno-cygwin -DWIN32_LEAN_AND_MEAN"
+
+do_compile_prepend_mingw32 () {
+ export EX_LIBS="${EXTRA_LIBS}"
+}
+
+do_install_prepend_mingw32 () {
+ export EX_LIBS="${EXTRA_LIBS}"
+}
+
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-mingw][sumo][PATCH 0/1] openssl for Windows
2018-07-11 22:42 [meta-mingw][sumo][PATCH 0/1] openssl for Windows Juro Bystricky
2018-07-11 22:42 ` [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw Juro Bystricky
@ 2018-07-12 6:11 ` Alexander Kanavin
1 sibling, 0 replies; 5+ messages in thread
From: Alexander Kanavin @ 2018-07-12 6:11 UTC (permalink / raw)
To: Juro Bystricky; +Cc: Yocto discussion list, jurobystricky, alejandr
You probably need to do this for openssl 1.1 as well as it soon will
be the default.
Alex
2018-07-12 0:42 GMT+02:00 Juro Bystricky <juro.bystricky@intel.com>:
> Patch to allow building openssl for Windows.
> openssl can also become part of SDK, i.e:
>
> SDKMACHINE="x86_64-mingw32"
> MACHINE = "qemux86-64"
> TOOLCHAIN_HOST_TASK_append = " nativesdk-openssl "
>
>
> Juro Bystricky (1):
> openssl: build for mingw
>
> .../openssl/openssl/mingw-targets.patch | 13 +++++++++++++
> recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++
> 2 files changed, 32 insertions(+)
> create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch
> create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
>
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw
2018-07-11 22:42 ` [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw Juro Bystricky
@ 2018-07-12 16:54 ` Burton, Ross
2018-07-16 14:51 ` Bystricky, Juro
0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2018-07-12 16:54 UTC (permalink / raw)
To: Juro Bystricky
Cc: Yocto-mailing-list, Alejandro Enedino Hernandez Samaniego,
Juro Bystricky
Does this also work for rocko and master if the bbappend used a
wildcard? Or is it not required for rocko and master?
Ross
On 11 July 2018 at 23:42, Juro Bystricky <juro.bystricky@intel.com> wrote:
> Build openssl.exe and several .dll files needed to run openssl
> under Windows
>
> Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
> ---
> .../openssl/openssl/mingw-targets.patch | 13 +++++++++++++
> recipes-connectivity/openssl/openssl_1.0.2o.bbappend | 19 +++++++++++++++++++
> 2 files changed, 32 insertions(+)
> create mode 100644 recipes-connectivity/openssl/openssl/mingw-targets.patch
> create mode 100644 recipes-connectivity/openssl/openssl_1.0.2o.bbappend
>
> diff --git a/recipes-connectivity/openssl/openssl/mingw-targets.patch b/recipes-connectivity/openssl/openssl/mingw-targets.patch
> new file mode 100644
> index 0000000..a9d98db
> --- /dev/null
> +++ b/recipes-connectivity/openssl/openssl/mingw-targets.patch
> @@ -0,0 +1,13 @@
> +--- a/Configure
> ++++ b/Configure
> +@@ -672,6 +668,10 @@ my %table=(
> +
> + # MinGW
> + "mingw", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
> ++"mingw32-x86_64","gcc:-mno-cygwin -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE::-D_MT:MINGW64:-lws2_32 -lgdi32 -lcrypt32:SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:${x86_64_asm}:mingw64:win32:cygwin-shared:-D_WINDLL:-mno-cygwin:.dll.a",
> ++"i686-pokysdk-mingw32", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
> ++"mingw32-i686", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer -O3 -march=i686 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
> ++
> + # As for OPENSSL_USE_APPLINK. Applink makes it possible to use .dll
> + # compiled with one compiler with application compiled with another
> + # compiler. It's possible to engage Applink support in mingw64 build,
> diff --git a/recipes-connectivity/openssl/openssl_1.0.2o.bbappend b/recipes-connectivity/openssl/openssl_1.0.2o.bbappend
> new file mode 100644
> index 0000000..0e4485c
> --- /dev/null
> +++ b/recipes-connectivity/openssl/openssl_1.0.2o.bbappend
> @@ -0,0 +1,19 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> +
> +SRC_URI_append_mingw32 = " file://mingw-targets.patch"
> +
> +EXTRA_LIBS_mingw32 = "-lws2_32 -lgdi32 -lcrypt32 -lgcc"
> +
> +CFLAG_remove_mingw32 = " -DTERMIO"
> +CFLAG_remove_mingw32 = " -DHAVE_CRYPTODEV"
> +CFLAG_remove_mingw32 = " -Wa,--noexecstack"
> +CFLAG_append_mingw32 = " -DNOCRYPT -mno-cygwin -DWIN32_LEAN_AND_MEAN"
> +
> +do_compile_prepend_mingw32 () {
> + export EX_LIBS="${EXTRA_LIBS}"
> +}
> +
> +do_install_prepend_mingw32 () {
> + export EX_LIBS="${EXTRA_LIBS}"
> +}
> +
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw
2018-07-12 16:54 ` Burton, Ross
@ 2018-07-16 14:51 ` Bystricky, Juro
0 siblings, 0 replies; 5+ messages in thread
From: Bystricky, Juro @ 2018-07-16 14:51 UTC (permalink / raw)
To: Burton, Ross
Cc: Yocto-mailing-list, Alejandro Enedino Hernandez Samaniego,
Juro Bystricky
> Does this also work for rocko and master if the bbappend used a
> wildcard? Or is it not required for rocko and master?
Good question. I am inclined to think it should work. (I will test it).
Juro
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-07-16 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 22:42 [meta-mingw][sumo][PATCH 0/1] openssl for Windows Juro Bystricky
2018-07-11 22:42 ` [meta-mingw][sumo][PATCH 1/1] openssl: build for mingw Juro Bystricky
2018-07-12 16:54 ` Burton, Ross
2018-07-16 14:51 ` Bystricky, Juro
2018-07-12 6:11 ` [meta-mingw][sumo][PATCH 0/1] openssl for Windows Alexander Kanavin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.