mingw patches to build meta-toolchain
cover mingw patches to build meta-toolchain
Several recipes have been updated, so the corresponding .bbappend files became stale. The attached patches correspond to various updated recipes.
I tested the patches with meta-mingw layer and:
SDKMACHINE="i686-mingw32"
bitbake meta-toolchain
Juro Bystricky (6):
binutils-cross-canadian: upgrade to version 2.25 gdb-cross-canadian_7.8.1: updated to gdb-cross-canadian_7.9.1 nativesdk-libtool_2.4.2: updated nativesdk-libtool_2.4.6 libmpc_1.0.2: updated to libmpc_1.0.3
mpfr_3.1.2: updated to mpfr_3.1.3 gettext_0.19.4.bbappend: support for mingw
recipes-core/gettext/gettext_0.19.4.bbappend | 2 ++ recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend | 5 ----- recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend | 5 +++++ recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend | 5 ----- recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend | 5 +++++ recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend | 1 - recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend | 1 + recipes-support/libmpc/libmpc_1.0.3.bbappend | 1 + recipes-support/mpc/libmpc_1.0.2.bbappend | 1 - recipes-support/mpfr/mpfr_3.1.2.bbappend | 1 - recipes-support/mpfr/mpfr_3.1.3.bbappend | 1 + 11 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 recipes-core/gettext/gettext_0.19.4.bbappend delete mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend create mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend delete mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend create mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend delete mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend create mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend create mode 100644 recipes-support/libmpc/libmpc_1.0.3.bbappend delete mode 100644 recipes-support/mpc/libmpc_1.0.2.bbappend delete mode 100644 recipes-support/mpfr/mpfr_3.1.2.bbappend create mode 100644 recipes-support/mpfr/mpfr_3.1.3.bbappend
Signature · 1 line
1.9.1
PATCH 1/6 binutils-cross-canadian: upgrade to version 2.25
Renamed the file binutils-cross-canadian_2.24.bbappend to binutils-cross-canadian_2.25.bbappend.
--- recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend | 5 ----- recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend create mode 100644 recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend
recipes-devtools/binutils/binutils-cross-canadian_2.24.bbappend deleted +0 -5
@@ -1,5 +0,0 @@ -EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls" -LDFLAGS_append_sdkmingw32 = " -Wl,-static" - -DEPENDS_remove_sdkmingw32 = "nativesdk-gettext" -DEPENDS_remove_sdkmingw32 = "nativesdk-flex"
recipes-devtools/binutils/binutils-cross-canadian_2.25.bbappend new file +5 -0
@@ -0,0 +1,5 @@ +EXTRA_OECONF_append_sdkmingw32 = " --disable-plugins --disable-nls" +LDFLAGS_append_sdkmingw32 = " -Wl,-static" + +DEPENDS_remove_sdkmingw32 = "nativesdk-gettext" +DEPENDS_remove_sdkmingw32 = "nativesdk-flex"
Signature · 1 line
1.9.1
PATCH 2/6 gdb-cross-canadian_7.8.1: updated to gdb-cross-canadian_7.9.1
In reply to Juro BystrickyRenamed gdb-cross-canadian_7.8.1.bbappend to gdb-cross-canadian_7.9.1.bbappend, to match the updated recipe gdb-cross-canadian_7.9.1.bb.
--- recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend | 5 ----- recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend create mode 100644 recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend
recipes-devtools/gdb/gdb-cross-canadian_7.8.1.bbappend deleted +0 -5
@@ -1,5 +0,0 @@ -LDFLAGS_append_sdkmingw32 = " -Wl,-static" -EXEEXT_sdkmingw32 = ".exe" -DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline nativesdk-python" -RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs nativesdk-python-netclient" -EXTRA_OECONF_append_sdkmingw32 = "--without-curses --without-system-readline --with-python=no"
recipes-devtools/gdb/gdb-cross-canadian_7.9.1.bbappend new file +5 -0
@@ -0,0 +1,5 @@ +LDFLAGS_append_sdkmingw32 = " -Wl,-static" +EXEEXT_sdkmingw32 = ".exe" +DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline nativesdk-python" +RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs nativesdk-python-netclient" +EXTRA_OECONF_append_sdkmingw32 = "--without-curses --without-system-readline --with-python=no"
Signature · 1 line
1.9.1
PATCH 3/6 nativesdk-libtool_2.4.2: updated nativesdk-libtool_2.4.6
In reply to Juro BystrickyRenamed nativesdk-libtool_2.4.2.bbappend to nativesdk-libtool_2.4.6.bbappend in order to match the new recipe nativesdk-libtool_2.4.6.bb.
--- recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend | 1 - recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend create mode 100644 recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend
recipes-devtools/libtool/nativesdk-libtool_2.4.2.bbappend deleted +0 -1
@@ -1 +0,0 @@ -EXTRA_OECONF_append_mingw32 = " --disable-shared"
recipes-devtools/libtool/nativesdk-libtool_2.4.6.bbappend new file +1 -0
@@ -0,0 +1 @@ +EXTRA_OECONF_append_mingw32 = " --disable-shared"
Signature · 1 line
1.9.1
PATCH 4/6 libmpc_1.0.2: updated to libmpc_1.0.3
In reply to Juro BystrickyRenamed recipes-support/mpc/libmpc_1.0.2.bbappend to recipes-support/libmpc/libmpc_1.0.3.bbappend to reflect the changed location and version of the recipe libmpc_1.0.3.bb.
--- recipes-support/libmpc/libmpc_1.0.3.bbappend | 1 + recipes-support/mpc/libmpc_1.0.2.bbappend | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 recipes-support/libmpc/libmpc_1.0.3.bbappend delete mode 100644 recipes-support/mpc/libmpc_1.0.2.bbappend
recipes-support/libmpc/libmpc_1.0.3.bbappend new file +1 -0
@@ -0,0 +1 @@ +EXTRA_OECONF_append_mingw32 = "--enable-static --disable-shared"
recipes-support/mpc/libmpc_1.0.2.bbappend deleted +0 -1
@@ -1 +0,0 @@ -EXTRA_OECONF_append_mingw32 = "--enable-static --disable-shared"
Signature · 1 line
1.9.1
PATCH 5/6 mpfr_3.1.2: updated to mpfr_3.1.3
In reply to Juro BystrickyRenamed mpfr_3.1.2.bbappend to mpfr_3.1.3.bbappend to match the new recipe mpfr_3.1.3.bb.
--- recipes-support/mpfr/mpfr_3.1.2.bbappend | 1 - recipes-support/mpfr/mpfr_3.1.3.bbappend | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 recipes-support/mpfr/mpfr_3.1.2.bbappend create mode 100644 recipes-support/mpfr/mpfr_3.1.3.bbappend
recipes-support/mpfr/mpfr_3.1.2.bbappend deleted +0 -1
@@ -1 +0,0 @@ -EXTRA_OECONF_append_mingw32 = " --disable-shared"
recipes-support/mpfr/mpfr_3.1.3.bbappend new file +1 -0
@@ -0,0 +1 @@ +EXTRA_OECONF_append_mingw32 = " --disable-shared"
Signature · 1 line
1.9.1
PATCH 6/6 gettext_0.19.4.bbappend: support for mingw
In reply to Juro BystrickyThis patch solves various unresolved references:
.libs/fstrcmp.o:fstrcmp.c:(.text+0x4b6): undefined reference to _imp__pthread_key_create' .libs/fstrcmp.o:fstrcmp.c:(.text+0x5b2): undefined reference to _imp__pthread_once' .libs/fstrcmp.o:fstrcmp.c:(.text+0x5c4): undefined reference to _imp__pthread_getspecific' .libs/fstrcmp.o:fstrcmp.c:(.text+0x617): undefined reference to _imp__pthread_setspecific' .libs/localename.o:localename.c:(.text+0x14f6): undefined reference to _imp__pthread_mutex_lock' .libs/localename.o:localename.c:(.text+0x1576): undefined reference to _imp__pthread_mutex_unlock' .libs/localename.o:localename.c:(.text+0x15c9): undefined reference to _imp__pthread_mutex_unlock' glthread/.libs/lock.o:lock.c:(.text+0xe): undefined reference to _imp__pthread_mutexattr_init' glthread/.libs/lock.o:lock.c:(.text+0x2d): undefined reference to _imp__pthread_mutexattr_settype' glthread/.libs/lock.o:lock.c:(.text+0x44): undefined reference to _imp__pthread_mutex_init' glthread/.libs/lock.o:lock.c:(.text+0x53): undefined reference to _imp__pthread_mutexattr_destroy' glthread/.libs/lock.o:lock.c:(.text+0x62): undefined reference to _imp__pthread_mutexattr_destroy' glthread/.libs/lock.o:lock.c:(.text+0x75): undefined reference to `_imp__pthread_mutexattr_dest
--- recipes-core/gettext/gettext_0.19.4.bbappend | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 recipes-core/gettext/gettext_0.19.4.bbappend
recipes-core/gettext/gettext_0.19.4.bbappend new file +2 -0
@@ -0,0 +1,2 @@ +DEPENDS_append_mingw32 = " pthreads-win32" +LDFLAGS_prepend_mingw32 = " -lpthread "
Signature · 1 line
1.9.1
Richard Purdie
AppliedQuoted 7 lines · Juro Bystricky
Several recipes have been updated, so the corresponding .bbappend files became stale. The attached patches correspond to various updated recipes.
I tested the patches with meta-mingw layer and:
SDKMACHINE="i686-mingw32"
bitbake meta-toolchain
Merged, thanks!
Richard