@ Fabrice OK, I hear what you're saying. I've read about "packaged staging" and it seem to be "a good thing" (http://marcin.juszkiewicz.com.pl/2008/07/01/packaged-staging-and-what-it-gives/). I did try using "oe_stage_append_mymachine()" but got an error saying something like "there is no oe_stage so you can't append, use oe_stage() instead". So I tried "oe_stage_mymachine()" but still got the same error... Then I tried "oe_stage()" that worked but I don't wan't to do it "unqualified". (I'm using OE "tested_2010-12-30", maybe this is fixed in later releases.)
@ Henning Regarding not using "do_stage" I found this: "https://wiki.yoctoproject.org/wiki/Merging_packages_from_OpenEmbedded" and know that Yocto and OE are getting closer involved. Also I found posts about "kernel_do_stage()" from kernel.bbclass but I have no such function in my OE version. This info "http://openembedded.org/index.php/Legacy_staging" suggests STAGING_INCDIR -> ${D}${includedir} but that doesn't make sense to me because I want the file where other recipes could reach it. I have seen your comments on other posts also saying "don't use do_stage". Could you please point me off to somewhere where I could get the background and what would be "the right" way to do this? Best regards, Mats ________________________________________ From: openembedded-devel-boun...@lists.openembedded.org [openembedded-devel-boun...@lists.openembedded.org] on behalf of Aeschbacher, Fabrice [fabrice.aeschbac...@siemens.com] Sent: Wednesday, July 20, 2011 3:28 PM To: openembedded-devel@lists.openembedded.org Subject: Re: [oe] Added header file to linux kernel - how to export 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-boun...@lists.openembedded.org > [mailto:openembedded-devel-boun...@lists.openembedded.org] Im > Auftrag von Mats Kärrman > Gesendet: Mittwoch, 20. Juli 2011 15:14 > An: openembedded-devel@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-boun...@lists.openembedded.org > [openembedded-devel-boun...@lists.openembedded.org] on behalf > of Henning Heinold [hein...@inf.fu-berlin.de] > Sent: Wednesday, July 20, 2011 11:05 AM > To: openembedded-devel@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@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel > _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel