[yocto] [meta-mingw][PATCH 2/2] cmake: add support for building nativesdk-cmake

Samuli Piippo samuli.piippo at qt.io
Thu Nov 15 01:29:00 PST 2018


Build nativesdk-cmake and dependency libs without without openssl.

Signed-off-by: Samuli Piippo <samuli.piippo at qt.io>
---
 .../nativesdk-packagegroup-sdk-host.bbappend              | 1 +
 recipes-devtools/cmake/cmake_%.bbappend                   | 8 ++++++++
 recipes-extended/libarchive/libarchive_%.bbappend         | 1 +
 recipes-support/curl/curl_%.bbappend                      | 2 ++
 4 files changed, 12 insertions(+)
 create mode 100644 recipes-devtools/cmake/cmake_%.bbappend
 create mode 100644 recipes-extended/libarchive/libarchive_%.bbappend
 create mode 100644 recipes-support/curl/curl_%.bbappend

diff --git a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
index ad69b13..9544ffb 100644
--- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
+++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend
@@ -2,4 +2,5 @@ RDEPENDS_${PN}_mingw32 = "\
     nativesdk-pkgconfig \
     nativesdk-libtool \
     nativesdk-qemu \
+    nativesdk-cmake \
     "
diff --git a/recipes-devtools/cmake/cmake_%.bbappend b/recipes-devtools/cmake/cmake_%.bbappend
new file mode 100644
index 0000000..f76cd82
--- /dev/null
+++ b/recipes-devtools/cmake/cmake_%.bbappend
@@ -0,0 +1,8 @@
+DEPENDS_remove_mingw32 = "ncurses"
+
+cmake_do_generate_toolchain_file_append_mingw32() {
+    cat >> ${WORKDIR}/toolchain.cmake <<EOF
+set( CMAKE_SYSTEM_NAME Windows )
+EOF
+}
+
diff --git a/recipes-extended/libarchive/libarchive_%.bbappend b/recipes-extended/libarchive/libarchive_%.bbappend
new file mode 100644
index 0000000..a411b40
--- /dev/null
+++ b/recipes-extended/libarchive/libarchive_%.bbappend
@@ -0,0 +1 @@
+EXTRA_OECONF_append_mingw32 = " --without-cng"
diff --git a/recipes-support/curl/curl_%.bbappend b/recipes-support/curl/curl_%.bbappend
new file mode 100644
index 0000000..7865b46
--- /dev/null
+++ b/recipes-support/curl/curl_%.bbappend
@@ -0,0 +1,2 @@
+PACKAGECONFIG_remove_class-nativesdk_mingw32 = "ssl"
+RRECOMMENDS_lib${BPN}_remove_mingw32 = "ca-certificates"
-- 
2.17.1



More information about the yocto mailing list