Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Wolfgang Denk
Dear Bruce, In message <50f59a91.5080...@windriver.com> you wrote: > > > Yes, it's clear to me that, in this one respect, the SDK is unsuitable > > for building kernels or kernel modules. > > > > My point is that this is a problem, and it might be reasonable to fix it. This is indeed a problem, a

Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Eric Bénard
Le Tue, 15 Jan 2013 17:59:10 +, Patrick Turley a écrit : > Yes, it's clear to me that, in this one respect, the SDK is unsuitable for > building kernels or kernel modules. > > My point is that this is a problem, and it might be reasonable to fix it. > set LDFLAGS="" and you can build kernel

Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Bruce Ashfield
On 13-01-15 12:59 PM, Patrick Turley wrote: On Jan 15, 2013, at 11:38 AM, Brian Lloyd mailto:bll...@familyhonor.net>> wrote: The kernel is a special case, where the SDK is really designed for developing user applications (which the kernel is not). Yes, it's clear to me that, in this one re

Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Patrick Turley
On Jan 15, 2013, at 11:38 AM, Brian Lloyd mailto:bll...@familyhonor.net>> wrote: The kernel is a special case, where the SDK is really designed for developing user applications (which the kernel is not). Yes, it's clear to me that, in this one respect, the SDK is unsuitable for building kern

Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Brian Lloyd
The kernel is a special case, where the SDK is really designed for developing user applications (which the kernel is not). I found it pretty easy to create a kernel-module-MYMODULE.bbclass file and build the kernel and module in the OE/Poky build system directly, and then have it included in the i

Re: [yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Eric Bénard
Hi Patrick, Le Tue, 15 Jan 2013 16:52:14 +, Patrick Turley a écrit : > 1) Has anyone else run into this before? > > 2) If so, how did you resolve it? > > 3) Since the Yocto kernel build is *not* failing, I infer that it is *not* > using the ld options the SDK gives me. So, the Yocto kernel

[yocto] SDK environment LDFLAGS problem?

2013-01-15 Thread Patrick Turley
I used the meta-toolchain-sdk recipe to produce an SDK, and I installed it. Here's an interesting line from the environment setup script: export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" All these linker options are preceded by "-Wl", which indicates the SDK is *expecting* them t