[OE-core] [PATCH] native.bbclass: populate native recipe with it's files
Richard Purdie
richard.purdie at linuxfoundation.org
Sun Feb 19 18:47:01 UTC 2017
On Fri, 2017-02-17 at 08:25 +0100, Patrick Ohly wrote:
> On Thu, 2017-02-16 at 15:46 -0800, Saul Wold wrote:
> >
> > This allows a native package's recipe-sysroot-native to be
> > populated with
> > that packages native image files. This in turns allows it to be
> > used by
> > scripts or other tools without creating un-necessary DEPENDS.
> >
> > An example of this is systemtap-native and the crosstap script.
> The intended usage wasn't clear to me at first. I think it is
> something
> like "bitbake foobar-native" and then calling foobar's tools directly
> from tmp/work/*/foobar-native/*/recipe-sysroot-native (?).
>
> If true, then any recipe intending to be used like that also needs to
> exclude itself from do_rm_work:
> RM_WORK_EXCLUDE += "${PN}"
>
> Or perhaps more selectively exclude the RSS:
> RM_WORK_EXCLUDE_ITEMS += "recipe-sysroot-native" (is there a variable
> for this name?)
I've been idly wondering whether just excluding recipe-sysroot* from
rm_work might be useful since its mostly hardlinked files anyway and
likely doesn't cause too much of a space issue...
Cheers,
Richard
More information about the Openembedded-core
mailing list