sdk.bbclass: allow virtclass-sdk override
PATCH 1/3 sdk.bbclass: allow virtclass-sdk override
--- classes/sdk.bbclass | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
classes/sdk.bbclass +2 -0
@@ -66,3 +66,5 @@ FILES_${PN}-dbg += "${prefix}/.debug \ " export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" + +OVERRIDES .= ":virtclass-sdk"
Signature · 1 line
1.6.3.3
PATCH 2/3 qt4-tools-sdk: bring compatibility with QTCreator
* this links "puts" mkspecs at the place where QTCreator search for it in order to detect a toolchain
* thanks to this link QTCreator detects the toolchain generated using meta-toolchain-qte and can cross compile applications without any hack
--- recipes/qt4/qt4-tools-sdk_4.6.3.bb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
recipes/qt4/qt4-tools-sdk_4.6.3.bb +4 -0
@@ -76,6 +76,10 @@ do_install() { for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ ln -s ${i}4 ${i}; \ done) + + # make a symbolic link to mkspecs for compatibility with Nokia's SDK + # and QTCreator + (cd ${D}${bindir}/..; ln -s ${TARGET_SYS}/usr/share/qtopia/mkspecs mkspecs;) } SRC_URI[md5sum] = "5c69f16d452b0bb3d44bc3c10556c072"
Signature · 1 line
1.6.3.3
PATCH 3/3 gdb-cross-sdk: use static libncurses libtinfo libz and libexpat
* statically linking these libs prevents several runtime problems
--- recipes/gdb/gdb-cross-sdk.inc | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +12 -1
@@ -1,8 +1,19 @@ require gdb-cross.inc LICENSE = "GPLv3" -INC_PR = "r6" +INC_PR = "r7" inherit sdk DEPENDS = "ncurses-sdk zlib-sdk flex-native" +EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'" + +do_configure_append () { + cd ${B} + oe_runmake configure-host + sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile + sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/arm/Makefile +}
Signature · 1 line
1.6.3.3
Re: [PATCH 3/3] gdb-cross-sdk: use static libncurses libtinfo libz and libexpat
Quoted 1 line · Eric Bénard
* statically linking these libs prevents several runtime problems
Since ncurses 5.7 is default and otherwise switching down / staying down is hard atm, I'm OK with the -lncurses -> libncurses + libtinfo change.
Quoted 32 lines
Signed-off-by Eric Bénard <[email protected]>--- recipes/gdb/gdb-cross-sdk.inc | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)recipes/gdb/gdb-cross-sdk.inc +12
-1@@ -1,8 +1,19 @@ require gdb-cross.inc LICENSE = "GPLv3" -INC_PR = "r6" +INC_PR = "r7" inherit sdk DEPENDS = "ncurses-sdk zlib-sdk flex-native" +EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'" + +do_configure_append () { + cd ${B} + oe_runmake configure-host + sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile + sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile + sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/arm/Makefile +}
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Re: [PATCH 2/3] qt4-tools-sdk: bring compatibility with QTCreator
In reply to Eric BénardQuoted 5 lines · Eric Bénard
* this links "puts" mkspecs at the place where QTCreator search for it in order to detect a toolchain
* thanks to this link QTCreator detects the toolchain generated using meta-toolchain-qte and can cross compile applications without any hack
This is somewhat off-topic, but could you outline the procedure you use to create a Qt SDK? How does this recipe fit in with meta-toolchain-qte?
Also, have you done remote debugging with QtCreator -- just curious how well that works.
Thanks,
Cliff
Signature · 2 lines
================= http://bec-systems.com
Re: [PATCH 2/3] qt4-tools-sdk: bring compatibility with QTCreator
Quoted 9 lines · Cliff Brake
Quoted 5 lines · Eric Bénard
* this links "puts" mkspecs at the place where QTCreator search for it in order to detect a toolchain
* thanks to this link QTCreator detects the toolchain generated using meta-toolchain-qte and can cross compile applications without any hackThis is somewhat off-topic, but could you outline the procedure you use to create a Qt SDK?
bitbake meta-toolchain-qte
Quoted 2 lines
How does this recipe fit in with meta-toolchain-qte?
yes, meta-toolchain-qte -> TOOLCHAIN_HOST_TASK -> task-qte-toolchain-host -> RDEPENDS qt4-tools-sdk
Quoted 3 lines
Also, have you done remote debugging with QtCreator -- just curious how well that works.
I'm finalizing the doc (translating it in english and removing the hacks no morenecessary for libmpfr & libncurses & this mkspecs link once the patches are in the tree), I'll post a link once it's online (in the coming weeks).
Eric