[OE-core] [PATCH 1/2] toolchain-scripts.bbclass: Allow sourcing of subscript for environment

Otavio Salvador otavio at ossystems.com.br
Fri Oct 10 00:41:15 UTC 2014


On Thu, Oct 9, 2014 at 8:27 PM, Mark Hatle <mark.hatle at windriver.com> wrote:
> On 10/9/14, 4:53 PM, Otavio Salvador wrote:
>>
>> Sometimes we require extra environment settings to be available on the
>> environment for proper SDK work. This were done, in past, using
>> '_append' tasks however with the split of the environment in a
>> canadian package this has been broken.
>>
>> The easier and more flexible solution is to use environment subscripts
>> which are sources by the main script. These are now looked at:
>>
>>   $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh
>>
>> and sourced.
>>
>> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
>
>
> I really like this approach.  However, is there any way for the subscripts
> to be arch specific?

I think we can plan on that but this would be 1.8 material IMO. This
is enough for what we need today and can easily be improved in future
work. What do you think?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list