[OE-core] [PATCH 3/5] bbpath-intercepts.bbclass: add class

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jun 22 07:42:05 UTC 2018


On Fri, 2018-06-22 at 02:08 +0500, Christopher Larson wrote:
> From: Christopher Larson <chris_larson at mentor.com>
> 
> This class sets POSTINST_INTERCEPTS and
> POSTINST_INTERCEPTS_CHECKSUMS,
> to allow us to pull intercepts from BBPATH. This is kept as a
> separate
> class, as it's needed by both image construction and sdk
> construction,
> the latter to support meta-toolchain & similar recipes.
> 
> Signed-off-by: Christopher Larson <chris_larson at mentor.com>
> ---
>  meta/classes/bbpath-intercepts.bbclass | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 meta/classes/bbpath-intercepts.bbclass

We're struggling a bit with classes and namespaces. I'm wondering if
this might be better as "image-postinst-intercepts.bbclass" or similar.
That would mean the variable namespace matches the class and that the
image classes are more 'together'.

Your next patch will need rebasing against the changes that just merged
into master in image.bbclass.

I have also wondered about pushing more code to lib/oe but I can see
why this makes sense as a bbclass.

Cheers,

Richard




More information about the Openembedded-core mailing list