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" <armccu...@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@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core >
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core