[oe] Added header file to linux kernel - how to export
Aeschbacher, Fabrice
Fabrice.Aeschbacher at siemens.com
Wed Jul 20 13:28:42 UTC 2011
Mats,
Installing myfile.h during do_install() certainly works for you right now.
But it won't if you plan to use packaged-staging in the future. Hence my advice to do this rather during do_stage()
With kind regards,
Fabrice
> -----Ursprüngliche Nachricht-----
> Von: openembedded-devel-bounces at lists.openembedded.org
> [mailto:openembedded-devel-bounces at lists.openembedded.org] Im
> Auftrag von Mats Kärrman
> Gesendet: Mittwoch, 20. Juli 2011 15:14
> An: openembedded-devel at lists.openembedded.org
> Betreff: Re: [oe] Added header file to linux kernel - how to export
>
> @ Fabrice & Henning:
>
> Thank you both for your support! I ended up with:
>
> ## Export patched in header files for access by other recipes
> do_install_append_mymachine() {
> cp ${S}/arch/powerpc/include/asm/myfile.h
> ${STAGING_DIR_TARGET}${includedir}/asm/
> }
>
> Works fine but I'm a bit confused about the number of
> "STAGING_" definitions in the environment. It's not always
> easy to pick the right one, e.g. STAGING_DIR_TARGET and
> STAGING_DIR_HOST both points to the same location...
>
> Best Regards,
> Mats
>
> ________________________________________
> From: openembedded-devel-bounces at lists.openembedded.org
> [openembedded-devel-bounces at lists.openembedded.org] on behalf
> of Henning Heinold [heinold at inf.fu-berlin.de]
> Sent: Wednesday, July 20, 2011 11:05 AM
> To: openembedded-devel at lists.openembedded.org
> Subject: Re: [oe] Added header file to linux kernel - how to export
>
> On Tue, Jul 19, 2011 at 08:14:14PM +0200, Aeschbacher, Fabrice wrote:
> > Hi,
> >
> > Your could put something like this:
> >
> > do_stage_append() {
> > cp ${S}/my_ioctl.h ${STAGING_KERNEL_DIR}/include/linux
> > }
> >
> > in your recipes/linux<xxx>.bb
> >
> > With kind regards,
> > Fabrice
>
> Hi,
>
> do_stage shouldn't be used anymore. Do it via do_install method.
>
>
> Bye Henning
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list