[oe] [PATCH] native.bbclass: add (re)definitions for TARGET_SYS and HOST_SYS

Tom Rini tom_rini at mentor.com
Fri Aug 20 18:40:03 UTC 2010


Frans Meulenbroeks wrote:
> 2010/8/20 Khem Raj <raj.khem at gmail.com>:
>> On Fri, Aug 20, 2010 at 8:34 AM, Khem Raj <raj.khem at gmail.com> wrote:
>>> On Fri, Aug 20, 2010 at 7:39 AM, Phil Blundell <philb at gnu.org> wrote:
>>>> On Fri, 2010-08-20 at 16:19 +0200, Frans Meulenbroeks wrote:
>>>>> @@ -23,6 +23,7 @@ TARGET_VENDOR = "${BUILD_VENDOR}"
>>>>>  TARGET_PREFIX = "${BUILD_PREFIX}"
>>>>>  TARGET_CC_ARCH = "${BUILD_CC_ARCH}"
>>>>>  TARGET_EXEEXT = "${BUILD_EXEEXT}"
>>>>> +TARGET_SYS = "${BUILD_SYS}"
>>> bitbake.conf already has
>>>
>>> TARGET_SYS=${TARGET_ARCH}${TARGET_VENDOR}${@['-' +
>>> bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d,
>>> 1) == ('' or 'custom')]}
>>>
>>> so once you have TARGET_OS set correctly this should work well for native too.
>>
>> hmm _local ok if you override TARGET_OS locally then lot of other
>> things will change
>> because now TARGET_OS will not be reset to whatever native wants. even if you
>> redefine TARGET_SYS may not be sufficient. Somehow if you can make
>> native.bbclass
>> to stubbornly ignore TARGET_OS override that might work.
>>
> I don't want to override TARGET_OS (and in fact this could be done in
> the machine definition).
> 
> The hardware I am working with is a powerpc system quite similar to
> calamari. It is an e500v2 which supports/needs spe.
> For calamari/angstrom things work by the grace of the following code
> in angstrom.eglibc.inc:

In essence, Angstrom needs the logic 
compute_os_portion_of_target_triplet() in sane-toolchain.inc has, for 
doing -gnuspe if it's going to support PPC more widely.

-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list