On Wed, Aug 25, 2010 at 11:14 PM, Frans Meulenbroeks <
[email protected]> wrote:

> 2010/8/25 Chris Larson <[email protected]>:
> > On Wed, Aug 25, 2010 at 2:04 PM, Frans Meulenbroeks <
> > [email protected]> wrote:
> >
> >> Is it possible to add a file to SRC_URI for target only in a combined
> >> native/target recipe?
> >>
> >> Of course I know I can fully redefine SRC_URI, but I feel that is less
> >> desirable.
> >> The issue is that the target recipe needs an additional patch that the
> >> native recipe cannot use.
> >>
> >> Or do we need to introduce an _target suffix?
> >>
> >> Guess an intermediate variable also could do the trick.
> >> E.g.
> >>
> >> PATCH = "xx.patch"
> >> PATCH_virtclass-native = ""
> >> SRC_URI = "source and files and patches ${PATCH}"
> >>
> >> not really ideal either.
> >>
> >> I saw some other places where we need to tweak similarly with DEPENDS
> >> e.g.
> >> DEPENDS = "x"
> >> DEPENDS_virtclass-natvie = ""
> >>
> >> guess here _target could help too.
> >>
> >> Any ideas/comments/patches/... ?
> >
> >
> > Something like this should work:
> > DEPENDS += "$...@['', 'foo']['${BPN}' == '${PN}']}"
>
> Wow.
> I think it indeed does, but my knowledge of the language is not that
> good that I can say for sure.
> The construct above also is not too understandable for beginners. I
> think in this case I prefer an overrriding _virtclass-native
> assignment (or a new-to-be-introduced _target suffix).


Okay, how about..

OVERRIDES =. "$...@['', 'target:']['${BPN}' == '${PN}']}"

:)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to