Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override
@ 2010-09-21 13:56 Eric Bénard
  2010-09-21 13:56 ` [PATCH 2/7] gmp: add sdk build Eric Bénard
  2010-09-21 14:31 ` [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard
  0 siblings, 2 replies; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
---
 classes/sdk.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/classes/sdk.bbclass b/classes/sdk.bbclass
index 198d147..c8fa076 100644
--- a/classes/sdk.bbclass
+++ b/classes/sdk.bbclass
@@ -66,3 +66,5 @@ FILES_${PN}-dbg += "${prefix}/.debug \
                    "
 
 export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
+
+OVERRIDES .= ":virtclass-sdk"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/7] gmp: add sdk build
  2010-09-21 13:56 [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard
@ 2010-09-21 13:56 ` Eric Bénard
  2010-09-21 13:56   ` [PATCH 3/7] mpfr: " Eric Bénard
  2010-09-21 14:31 ` [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard
  1 sibling, 1 reply; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/gmp/gmp.inc      |    1 +
 recipes/gmp/gmp_5.0.1.bb |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/gmp/gmp.inc b/recipes/gmp/gmp.inc
index 55209f3..2ce4438 100644
--- a/recipes/gmp/gmp.inc
+++ b/recipes/gmp/gmp.inc
@@ -13,3 +13,4 @@ ARM_INSTRUCTION_SET = "arm"
 
 acpaths = ""
 
+TARGET_SYS_virtclass-sdk = "${HOST_SYS}"
\ No newline at end of file
diff --git a/recipes/gmp/gmp_5.0.1.bb b/recipes/gmp/gmp_5.0.1.bb
index 0b117b1..e85a72f 100644
--- a/recipes/gmp/gmp_5.0.1.bb
+++ b/recipes/gmp/gmp_5.0.1.bb
@@ -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"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/7] mpfr: add sdk build
  2010-09-21 13:56 ` [PATCH 2/7] gmp: add sdk build Eric Bénard
@ 2010-09-21 13:56   ` Eric Bénard
  2010-09-21 13:56     ` [PATCH 4/7] gcc-cross-sdk: RDEPENDS on mpfr-sdk and gmp-sdk Eric Bénard
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/mpfr/mpfr.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/mpfr/mpfr.inc b/recipes/mpfr/mpfr.inc
index 46ace56..cac2204 100644
--- a/recipes/mpfr/mpfr.inc
+++ b/recipes/mpfr/mpfr.inc
@@ -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
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 4/7] gcc-cross-sdk: RDEPENDS on mpfr-sdk and gmp-sdk
  2010-09-21 13:56   ` [PATCH 3/7] mpfr: " Eric Bénard
@ 2010-09-21 13:56     ` Eric Bénard
  2010-09-21 13:56       ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Eric Bénard
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

* 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

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/gcc/gcc-cross-sdk.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes/gcc/gcc-cross-sdk.inc b/recipes/gcc/gcc-cross-sdk.inc
index ef8cbcb..dbe06f3 100644
--- a/recipes/gcc/gcc-cross-sdk.inc
+++ b/recipes/gcc/gcc-cross-sdk.inc
@@ -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
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
  2010-09-21 13:56     ` [PATCH 4/7] gcc-cross-sdk: RDEPENDS on mpfr-sdk and gmp-sdk Eric Bénard
@ 2010-09-21 13:56       ` Eric Bénard
  2010-09-21 13:56         ` [PATCH 6/7] meta-toolchain: add LD_LIBRARY_PATH to environment-setup Eric Bénard
  2010-09-21 17:37         ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Holger Freyther
  0 siblings, 2 replies; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

* 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

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/gdb/gdb-cross-sdk.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index 7c85653..4545894 100644
--- a/recipes/gdb/gdb-cross-sdk.inc
+++ b/recipes/gdb/gdb-cross-sdk.inc
@@ -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"
\ No newline at end of file
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 6/7] meta-toolchain: add LD_LIBRARY_PATH to environment-setup
  2010-09-21 13:56       ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Eric Bénard
@ 2010-09-21 13:56         ` Eric Bénard
  2010-09-21 13:56           ` [PATCH 7/7] qt4-tools-sdk: bring compatibility with QTCreator Eric Bénard
  2010-09-21 17:37         ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Holger Freyther
  1 sibling, 1 reply; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/meta/meta-toolchain.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb
index 82918ad..aaf1818 100644
--- a/recipes/meta/meta-toolchain.bb
+++ b/recipes/meta/meta-toolchain.bb
@@ -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
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 7/7] qt4-tools-sdk: bring compatibility with QTCreator
  2010-09-21 13:56         ` [PATCH 6/7] meta-toolchain: add LD_LIBRARY_PATH to environment-setup Eric Bénard
@ 2010-09-21 13:56           ` Eric Bénard
  0 siblings, 0 replies; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 13:56 UTC (permalink / raw)
  To: openembedded-devel

* 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

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/qt4/qt4-tools-sdk_4.6.3.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/recipes/qt4/qt4-tools-sdk_4.6.3.bb b/recipes/qt4/qt4-tools-sdk_4.6.3.bb
index 1695c19..5f9ef6b 100644
--- a/recipes/qt4/qt4-tools-sdk_4.6.3.bb
+++ b/recipes/qt4/qt4-tools-sdk_4.6.3.bb
@@ -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"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override
  2010-09-21 13:56 [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard
  2010-09-21 13:56 ` [PATCH 2/7] gmp: add sdk build Eric Bénard
@ 2010-09-21 14:31 ` Eric Bénard
  1 sibling, 0 replies; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 14:31 UTC (permalink / raw)
  To: openembedded-devel

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
  2010-09-21 13:56       ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Eric Bénard
  2010-09-21 13:56         ` [PATCH 6/7] meta-toolchain: add LD_LIBRARY_PATH to environment-setup Eric Bénard
@ 2010-09-21 17:37         ` Holger Freyther
  2010-09-21 17:41           ` Eric Bénard
  1 sibling, 1 reply; 12+ messages in thread
From: Holger Freyther @ 2010-09-21 17:37 UTC (permalink / raw)
  To: openembedded-devel

On 09/21/2010 09:56 PM, Eric Bénard wrote:
> * 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
> 
> Signed-off-by: Eric Bénard <eric@eukrea.com>

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.


>  
>  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?




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
  2010-09-21 17:37         ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Holger Freyther
@ 2010-09-21 17:41           ` Eric Bénard
  2010-09-21 18:03             ` Holger Freyther
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 17:41 UTC (permalink / raw)
  To: openembedded-devel

Le 21/09/2010 19:37, Holger Freyther a écrit :
> On 09/21/2010 09:56 PM, Eric Bénard wrote:
>> * 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
>>
>> Signed-off-by: Eric Bénard<eric@eukrea.com>
>
> 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.
>
>>
>>   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?
>
I don't understand, do you need the -dev packages for gdb-cross is the SDK ?

Eric



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
  2010-09-21 17:41           ` Eric Bénard
@ 2010-09-21 18:03             ` Holger Freyther
  2010-09-21 20:01               ` Eric Bénard
  0 siblings, 1 reply; 12+ messages in thread
From: Holger Freyther @ 2010-09-21 18:03 UTC (permalink / raw)
  To: openembedded-devel

On 09/22/2010 01:41 AM, Eric Bénard wrote:

> 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.


>>
>>>
>>>   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?
>>
> 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.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 5/7] gdb-cross-sdk: add RDEPENDS
  2010-09-21 18:03             ` Holger Freyther
@ 2010-09-21 20:01               ` Eric Bénard
  0 siblings, 0 replies; 12+ messages in thread
From: Eric Bénard @ 2010-09-21 20:01 UTC (permalink / raw)
  To: openembedded-devel

Le 21/09/2010 20:03, Holger Freyther a écrit :
> On 09/22/2010 01:41 AM, Eric Bénard wrote:
>
>> 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

>>>
>>>>
>>>>    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?
>>>
>> 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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-09-21 20:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-21 13:56 [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard
2010-09-21 13:56 ` [PATCH 2/7] gmp: add sdk build Eric Bénard
2010-09-21 13:56   ` [PATCH 3/7] mpfr: " Eric Bénard
2010-09-21 13:56     ` [PATCH 4/7] gcc-cross-sdk: RDEPENDS on mpfr-sdk and gmp-sdk Eric Bénard
2010-09-21 13:56       ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Eric Bénard
2010-09-21 13:56         ` [PATCH 6/7] meta-toolchain: add LD_LIBRARY_PATH to environment-setup Eric Bénard
2010-09-21 13:56           ` [PATCH 7/7] qt4-tools-sdk: bring compatibility with QTCreator Eric Bénard
2010-09-21 17:37         ` [PATCH 5/7] gdb-cross-sdk: add RDEPENDS Holger Freyther
2010-09-21 17:41           ` Eric Bénard
2010-09-21 18:03             ` Holger Freyther
2010-09-21 20:01               ` Eric Bénard
2010-09-21 14:31 ` [PATCH 1/7] sdk.bbclass: allow virtclass-sdk override Eric Bénard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox