[yocto] Per-machine DEPENDS
Paul Eggleton
paul.eggleton at linux.intel.com
Thu May 17 13:27:52 PDT 2012
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.
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.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list