[oe] how to add file to SRC_URI for target only

Chris Larson clarson at kergoth.com
Thu Aug 26 14:26:14 UTC 2010


On Thu, Aug 26, 2010 at 1:11 AM, Esben Haabendal
<esbenhaabendal at gmail.com>wrote:

> On Wed, Aug 25, 2010 at 11:11 PM, Chris Larson <clarson at kergoth.com>
> wrote:
>
> > Something like this should work:
> > DEPENDS += "${@['', 'foo']['${BPN}' == '${PN}']}"
>
> What is the run-time cost of this, compared to an overrides based approach?


In order to *implement* the override, you'd end up having to do this
comparison, or something similar, in an anonymous python function or a
snippet like this in overrides, so I wouldn't worry much about the
particular implementation :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the Openembedded-devel mailing list