[yocto] TARGET_OS issues with linux-gnuspe
Kumar Gala
galak at kernel.crashing.org
Fri Jul 15 15:13:14 PDT 2011
On Jul 15, 2011, at 5:04 PM, Khem Raj wrote:
> On Fri, Jul 15, 2011 at 2:57 PM, Kumar Gala <galak at kernel.crashing.org> wrote:
>>
>> On Jul 15, 2011, at 4:29 PM, Khem Raj wrote:
>>
>>> On Fri, Jul 15, 2011 at 2:10 PM, Kumar Gala <galak at kernel.crashing.org> wrote:
>>>> In my attempts to get an e500v2/gnuspe toolchain working I was able to get core-image-minimal working. However when I try the 'meta-toolchain' I run into the following below. I believe this is because of TARGET_OS being 'linux-gnuspe'.
>>>>
>>>> Any ideas ?
>>>>
>>>> - k
>>>>
>>>> [kumar at right build-p2020]$ bitbake meta-toolchain
>>>>
>>>> OE Build Configuration:
>>>> BB_VERSION = "1.13.2"
>>>> TARGET_ARCH = "powerpc"
>>>> TARGET_OS = "linux-gnuspe"
>>>> MACHINE = "p2020-ds"
>>>> DISTRO = "poky"
>>>> DISTRO_VERSION = "1.0+snapshot-20110715"
>>>> TARGET_FPU = "spe"
>>>> meta
>>>> meta-yocto = "master:068839698fe192d8846c0ed4db65861448e8e524"
>>>>
>>>> NOTE: Resolving any missing task queue dependencies
>>>> ERROR: Nothing PROVIDES 'virtual/powerpc-poky-linux-libc-for-gcc'
>>>
>>> here is the problem. This should have been called
>>> virtual/powerpc-poky-linux-gnuspe-libc-for-gcc
>>>
>>> so TARGET_PREFIX is not being set correctly which means TARGET_SYS is
>>> not being set correctly
>>>
>>> and
>>>
>>> TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' +
>>> bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d,
>>> 1) == ('' or 'custom')]}"
>>>
>>> so it should be ok if TARGET_OS is set
>>>
>>> can you pastebin output of
>>>
>>> bitbake -e meta-toolchain
>>>
>>> somewhere
>>
>> Are you sure that is what you want? It looks the same
>>
>> http://pastebin.com/FuNFCxLQ
>
> heh thats not enought info in there. But again the problem seems to be
> that TARGET_OS is not being set to linux-gnuspe and
> virtual/${TARGET_PREFIX}libc-for-gcc
>
> is being expanded to use default value which is 'powerpc-poky-linux-'
> in your case
>
> how/where are you setting TARGET_OS
Guessing:
meta/conf/distro/include/tclibc-eglibc.inc:TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}"
- k
More information about the yocto
mailing list