[OE-core] [PATCH] kernel.bbclass: allow exporting files from kernel recipes to sysroot

Richard Purdie richard.purdie at linuxfoundation.org
Mon Sep 24 13:11:13 UTC 2018


On Mon, 2018-09-24 at 12:19 +0000, Mikko.Rapeli at bmw.de wrote:
> > That was one old way, but not the only. And not for exposing non
> > uapi
> > headers.
> 
> What other ways exist?
> 
> I don't care how, but I must export custom kernel specific headers
> and
> other files to other recipes in a build in ways which are compatible
> with
> yocto upstream.
> 
> I have not seen any documented ways for this.

It may not be documented, perhaps because its actually very simple.

Any recipe can expose headers into the recipe sysroot, they simply
install them where needed in do_install as normal.

So all you need is a recipe which installs the right headers and then
you DEPEND on that recipe. Where that recipe gets the headers isn't
relevant.

Cheers,

Richard



More information about the Openembedded-core mailing list