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

Khem Raj raj.khem at gmail.com
Fri Aug 20 15:44:01 UTC 2010


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 think this is the right thing; native.bbclass already assigns
>> TARGET_OS = "${BUILD_OS}".
>>
>> Do you really need to use a _local override for TARGET_OS?  If so then I
>> guess you need to find a way to stop it applying for virtclass-native.
>>
>> p.
>>
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>




More information about the Openembedded-devel mailing list