sdk.bbclass: allow virtclass-sdk override
PATCH 1/7 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/7 gmp: add sdk build
--- recipes/gmp/gmp.inc | 1 + recipes/gmp/gmp_5.0.1.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
recipes/gmp/gmp.inc +1 -0
@@ -13,3 +13,4 @@ ARM_INSTRUCTION_SET = "arm" acpaths = "" +TARGET_SYS_virtclass-sdk = "${HOST_SYS}"
recipes/gmp/gmp_5.0.1.bb +1 -1
@@ -5,4 +5,4 @@ SRC_URI[gmp.sha256sum] = "a2a610f01fd3298dc08c87bf30498c2402590e1bcb227fc40b15ee require gmp.inc LICENSE = "GPLv3 LGPLv3" NATIVE_INSTALL_WORKS = "1" -BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "native nativesdk sdk"
Signature · 1 line
1.6.3.3
PATCH 3/7 mpfr: add sdk build
--- recipes/mpfr/mpfr.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/mpfr/mpfr.inc +1 -1
@@ -2,7 +2,7 @@ DESCRIPTION = "A C library for multiple-precision floating-point computations wi HOMEPAGE = "http://www.mpfr.org/" LICENSE = "GPL LGPL" SECTION = "libs" -BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "native nativesdk sdk" INC_PR = "r3" inherit autotools
Signature · 1 line
1.6.3.3
PATCH 4/7 gcc-cross-sdk: RDEPENDS on mpfr-sdk and gmp-sdk
* actually we get :
./cc1plus: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
* adding these RDEPENDS will install gmp-sdk and mpfr-sdk into the SDK
--- recipes/gcc/gcc-cross-sdk.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/gcc/gcc-cross-sdk.inc +1 -0
@@ -1,6 +1,7 @@ inherit sdk DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc ${NATIVEDEPS}" +RDEPENDS = "mpfr-sdk gmp-sdk" require gcc-configure-sdk.inc require gcc-package-sdk.inc
Signature · 1 line
1.6.3.3
PATCH 5/7 gdb-cross-sdk: add RDEPENDS
* actually we get :
./arm-angstrom-linux-gnueabi-gdb: error while loading shared libraries:
libtinfo.so.5: cannot open shared object file: No such file or directory
* adding these RDEPENDS will install ncurses-sdk and zlib-sdk into the SDK
--- recipes/gdb/gdb-cross-sdk.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/gdb/gdb-cross-sdk.inc +2 -1
@@ -1,8 +1,9 @@ require gdb-cross.inc LICENSE = "GPLv3" -INC_PR = "r6" +INC_PR = "r7" inherit sdk DEPENDS = "ncurses-sdk zlib-sdk flex-native" +RDEPENDS = "ncurses-sdk zlib-sdk"
Signature · 1 line
1.6.3.3
PATCH 6/7 meta-toolchain: add LD_LIBRARY_PATH to environment-setup
--- recipes/meta/meta-toolchain.bb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/meta/meta-toolchain.bb +1 -0
@@ -157,6 +157,7 @@ do_populate_sdk() { echo 'export CONFIG_SITE=$SDK_PATH/site-config' >> $script echo 'alias opkg="LD_LIBRARY_PATH=$SDK_PATH/lib $SDK_PATH/bin/opkg-cl -f $SDK_PATH/${sysconfdir}/opkg-sdk.conf -o $SDK_PATH"' >> $script echo 'alias opkg-target="LD_LIBRARY_PATH=$SDK_PATH/lib $SDK_PATH/bin/opkg-cl -f $SDK_PATH/$TARGET_SYS${sysconfdir}/opkg.conf -o $SDK_PATH/$TARGET_SYS"' >> $script + echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SDK_PATH/lib' >> $script # Add version information versionfile=${SDK_OUTPUT}/${SDKPATH}/version
Signature · 1 line
1.6.3.3
PATCH 7/7 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
Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
In reply to Eric BénardQuoted 6 lines · Eric Bénard
* actually we get :
./arm-angstrom-linux-gnueabi-gdb: error while loading shared libraries:
libtinfo.so.5: cannot open shared object file: No such file or directory
* adding these RDEPENDS will install ncurses-sdk and zlib-sdk into the SDKSigned-off-by Eric Bénard <[email protected]>
Is shlib stuff supposed to work for the -sdk packages? E.g. should something autodetect and install these libraries? The answer somehow feels like, yes it should.
Quoted 4 lines
DEPENDS = "ncurses-sdk zlib-sdk flex-native"
+RDEPENDS = "ncurses-sdk zlib-sdk"
\ No newline at end of file
this will also install the -dev packages?
Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
Quoted 6 lines · Holger Freyther
Quoted 5 lines · Eric Bénard
* actually we get :
./arm-angstrom-linux-gnueabi-gdb: error while loading shared libraries:
libtinfo.so.5: cannot open shared object file: No such file or directory
* adding these RDEPENDS will install ncurses-sdk and zlib-sdk into the SDK
Quoted 6 lines
Quoted 1 line
Signed-off-by Eric Bénard<[email protected]>Is shlib stuff supposed to work for the -sdk packages? E.g. should something autodetect and install these libraries? The answer somehow feels like, yes it should.
actually this seems to fail.
Quoted 8 lines
Quoted 5 lines
DEPENDS = "ncurses-sdk zlib-sdk flex-native"
+RDEPENDS = "ncurses-sdk zlib-sdk"
\ No newline at end of filethis will also install the -dev packages?
I don't understand, do you need the -dev packages for gdb-cross is the SDK ?
Eric
Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
Quoted 1 line · Eric Bénard
actually this seems to fail.
When building, do you see complains that gcc uses a library but has no known package providing that library? E.g. like the messages we saw on the libstdc++ issue a couple of days/weeks ago.
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
DEPENDS = "ncurses-sdk zlib-sdk flex-native"
+RDEPENDS = "ncurses-sdk zlib-sdk"
\ No newline at end of filethis will also install the -dev packages?
I don't understand, do you need the -dev packages for gdb-cross is the SDK ?
no, I just wondered what will be installed by the above package name. I think RP/Chris can shed some light into this.
Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
Quoted 8 lines · Holger Freyther
Quoted 1 line · Eric Bénard
actually this seems to fail.
When building, do you see complains that gcc uses a library but has no known package providing that library? E.g. like the messages we saw on the libstdc++ issue a couple of days/weeks ago.
yes :
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libnsl.so.1
NOTE: Couldn't find shared library provider for libc.so.6
NOTE: Couldn't find shared library provider for libncurses.so.5
NOTE: Couldn't find shared library provider for libtinfo.so.5
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libm.so.6
NOTE: Couldn't find shared library provider for libpython2.6.so.1.0
NOTE: Couldn't find shared library provider for libexpat.so.1
NOTE: Couldn't find shared library provider for libc.so.6
NOTE: Couldn't find shared library provider for libncurses.so.5
NOTE: Couldn't find shared library provider for libtinfo.so.5
NOTE: Couldn't find shared library provider for libz.so.1
NOTE: Couldn't find shared library provider for libm.so.6
NOTE: Couldn't find shared library provider for libpython2.6.so.1.0
NOTE: Couldn't find shared library provider for libexpat.so.1
NOTE: Couldn't find shared library provider for libc.so.6
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
DEPENDS = "ncurses-sdk zlib-sdk flex-native"
+RDEPENDS = "ncurses-sdk zlib-sdk"
\ No newline at end of file
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
this will also install the -dev packages?
I don't understand, do you need the -dev packages for gdb-cross is the SDK ?
no, I just wondered what will be installed by the above package name. I think RP/Chris can shed some light into this.
in the sdk, it installs ncurses-sdk and zlib-sdk.
Eric
Hi,
This patch serie is a RFC which allows to integrate necessary libraries into the SDK to have the possibility to execute the SDK without hacking in /usr/lib. If you think this is a correct way to fix the problem, I'll finish the patched (PR increase & co) and resend them.
Thanks
Eric