[OE-core] Staging machine specific kernel headers in sysroot

Khem Raj raj.khem at gmail.com
Sat Apr 2 05:19:28 UTC 2016


You should write a bbappend for linux libc headers recipe and apply the
patch to kernel and expose is that way. But before doing that I would
suggest that you work with driver owner to submit their header to kernel.
Since you can get into conflicts in future.
On Apr 1, 2016 8:38 PM, "Andre McCurdy" <armccurdy at gmail.com> wrote:

> Say I have a kernel driver with a user space API (simple struct and
> ioctl definitions) defined in a header file which is part of my
> machine specific kernel. The header file is not found in the upstream
> kernel, so doesn't clash with anything in linux-libc-headers.
>
> Is it OK to use something like the following in my kernel recipe?
>
>   sysroot_stage_all_append () {
>     install -d ${SYSROOT_DESTDIR}/${includedir}/linux
>     install -m644 ${S}/include/linux/foo.h
> ${SYSROOT_DESTDIR}/${includedir}/linux/
>   }
>
> I've tested it and everything seems to work fine, but I'm wondering if
> bypassing do_install like that is going to cause problems somehow?
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160401/36baec52/attachment-0002.html>


More information about the Openembedded-core mailing list