Skip to contentSkip to conversation

sdk.bbclass: allow virtclass-sdk override

PATCH In review Eric Bénard 3 participants 6 messages Sep 22, 2010 – Sep 23, 2010

lore
Share & tools
lore
#0 lore raw

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
index 198d147..c8fa076 100644
@@ -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
#1 lore raw

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
index 1695c19..5f9ef6b 100644
@@ -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
#2 lore raw

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
index 7c85653..fbff553 100644
@@ -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
+}
\ No newline at end of file
Signature · 1 line
1.6.3.3
Acked-by on v1 3/3
#3 lore raw

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
---
 recipes/gdb/gdb-cross-sdk.inc |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +12 -1
index 7c85653..fbff553 100644
@@ -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
+}
\ No newline at end of file
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#4 lore raw

Re: [PATCH 2/3] qt4-tools-sdk: bring compatibility with QTCreator

In reply to Eric Bénard
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 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
#5 lore raw

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 hack

This 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