[yocto] Per-machine DEPENDS

Chris Tapp opensource at keylevel.com
Thu May 17 14:07:50 PDT 2012


On 17 May 2012, at 21:27, Paul Eggleton wrote:

> On Thursday 17 May 2012 21:10:10 Chris Tapp wrote:
>> Is it possible to have the (R)DEPENDS list vary depending on the machine
>> being built?
>> 
>> For example, I want 'this-bit' to be included for a 'machine-1' build, but
>> not 'machine-2'.
>> 
>> Something like:
>> 
>> DEPENDS = "common-stuff"
>> 
>> DEPENDS_machine-1 = "${DEPENDS} this-stuff"
> 
> Yes, that will work. If the DEPENDS change implies some different configuration 
> I'd recommend being explicit about it as well e.g. via EXTRA_OECONF or 
> whatever is appropriate; this is particularly important for the case where the 
> extra dependency is not included and the configure script for the application 
> would auto-detect the presence of the additional dependency in the absence of 
> an explicit configure option.

Thanks. Is there some documentation that explains how the suffixes are build up, when they are used, etc. ?

> Also, ideally these machine-specific bits should live in a bbappend within the 
> BSP for that machine, thus keeping the recipe itself more or less generic.

Yes, that makes sense. I'll give it a go.

Chris Tapp

opensource at keylevel.com
www.keylevel.com






More information about the yocto mailing list