[oe] RFC: strip "-native" from $S for native packages automatically (bug 1856)

Michael 'Mickey' Lauer mickey at openmoko.org
Sun Jan 27 07:11:23 UTC 2008


On Sunday 27 January 2008 01:23:27 Richard Purdie wrote:
> On Sat, 2008-01-26 at 13:43 +0000, Richard Purdie wrote:
> > On Sat, 2008-01-26 at 01:51 +0100, Michael 'Mickey' Lauer wrote:
> > > If we really want to have that (I'm -0 on that), I would rather propose
> > >
> > > S = ${@"%s/%s" % ( bb.data.getVar("WORKDIR", d, 1), bb.data.getVar("P",
> > > d, 1).replace( "-native", "" ) ) }
> >
> > Would it be worth adding syntax to bitbake for this kind of operation,
> > something like:
> >
> > S *= "${S}-native"
> >
> > ?
>
> This syntax doesn't solve the original problem of course.
>
> People have requested -= and I've been wondering if we should add that
> as a search and remove operator. To match the existing language that
> would have to work on space delimited lists though so its of no use to
> this use case. We could pair this with a *= or operator which worked the
> same way without the space delimiter like .= does...

Aah, finally you're getting sane :D

>
> S *= "-native"
>
> ?
>
> maybe ~= would be a better pairing with -=?

Yes, I would it prefer that way.

We should be very careful with that though feature though, so it doesn't get 
overused.





More information about the Openembedded-devel mailing list