Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Bruce Ashfield
On 13-02-02 12:12 AM, Brian Lloyd wrote: I would like to point out the reason CROSS_COMPILE is used is because kernel makes things that run natively and also things that are for the end environment. Thus $(CROSS_COMPILE)$(CXX) is used to prepend when building something for the end system, and $(C

Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Brian Lloyd
I would like to point out the reason CROSS_COMPILE is used is because kernel makes things that run natively and also things that are for the end environment. Thus $(CROSS_COMPILE)$(CXX) is used to prepend when building something for the end system, and $(CXX) is used for local run items. So even

Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Bruce Ashfield
On 13-02-01 11:35 PM, Brian Lloyd wrote: While, I'm not an expert, I would like to point out: http://kernel.org/doc/index-old.html (the new index references this but the information isn't on the new index page directly). One thing mentioned is that a make distclean is required for reasonable res

Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Bruce Ashfield
On 13-02-01 7:48 PM, Patrick Turley wrote: On Jan 31, 2013, at 10:50 PM, Bruce Ashfield wrote: On 13-01-23 10:17 AM, Patrick Turley wrote: On Jan 23, 2013, at 7:48 AM, Bruce Ashfield wrote: On 13-01-23 12:34 AM, Patrick Turley wrote: On Jan 22, 2013, at 11:17 PM, Bruce Ashfield wro

Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Brian Lloyd
While, I'm not an expert, I would like to point out: http://kernel.org/doc/index-old.html (the new index references this but the information isn't on the new index page directly). One thing mentioned is that a make distclean is required for reasonable results between any run with different archite

Re: [yocto] Build external module against Yocto kernel

2013-02-01 Thread Patrick Turley
On Jan 31, 2013, at 10:50 PM, Bruce Ashfield wrote: > On 13-01-23 10:17 AM, Patrick Turley wrote: >> >> On Jan 23, 2013, at 7:48 AM, Bruce Ashfield >> wrote: >>> On 13-01-23 12:34 AM, Patrick Turley wrote: On Jan 22, 2013, at 11:17 PM, Bruce Ashfield wrote: > On 13

Re: [yocto] Build external module against Yocto kernel

2013-01-31 Thread Bruce Ashfield
On 13-01-23 10:17 AM, Patrick Turley wrote: On Jan 23, 2013, at 7:48 AM, Bruce Ashfield wrote: On 13-01-23 12:34 AM, Patrick Turley wrote: On Jan 22, 2013, at 11:17 PM, Bruce Ashfield wrote: On 13-01-23 12:14 AM, Patrick Turley wrote: On Jan 22, 2013, at 10:43 PM, Bruce Ashfield wro

Re: [yocto] Build external module against Yocto kernel

2013-01-24 Thread John Mehaffey
On Thu, Jan 24, 2013 at 12:10 PM, Bruce Ashfield < bruce.ashfi...@windriver.com> wrote: > On 13-01-24 02:58 PM, John Mehaffey wrote: > >> On Wed, Jan 23, 2013 at 7:17 AM, Patrick Turley >> > > >> wrote: >> >> >> On Jan 23, 2013, at 7:48 AM, Bruce Ashfield >

Re: [yocto] Build external module against Yocto kernel

2013-01-24 Thread Bruce Ashfield
On 13-01-24 02:58 PM, John Mehaffey wrote: On Wed, Jan 23, 2013 at 7:17 AM, Patrick Turley mailto:patricktur...@gamestop.com>> wrote: On Jan 23, 2013, at 7:48 AM, Bruce Ashfield mailto:bruce.ashfi...@windriver.com>> wrote: > On 13-01-23 12:34 AM, Patrick Turley wrote: >>

Re: [yocto] Build external module against Yocto kernel

2013-01-24 Thread John Mehaffey
On Wed, Jan 23, 2013 at 7:17 AM, Patrick Turley wrote: > > On Jan 23, 2013, at 7:48 AM, Bruce Ashfield > wrote: > > On 13-01-23 12:34 AM, Patrick Turley wrote: > >> > >> On Jan 22, 2013, at 11:17 PM, Bruce Ashfield < > bruce.ashfi...@windriver.com> wrote: > >> > >>> On 13-01-23 12:14 AM, Patrick

Re: [yocto] Build external module against Yocto kernel

2013-01-23 Thread Patrick Turley
On Jan 23, 2013, at 7:48 AM, Bruce Ashfield wrote: > On 13-01-23 12:34 AM, Patrick Turley wrote: >> >> On Jan 22, 2013, at 11:17 PM, Bruce Ashfield >> wrote: >> >>> On 13-01-23 12:14 AM, Patrick Turley wrote: On Jan 22, 2013, at 10:43 PM, Bruce Ashfield wrote: > On 13-01-22 9

Re: [yocto] Build external module against Yocto kernel

2013-01-23 Thread Bruce Ashfield
On 13-01-23 12:34 AM, Patrick Turley wrote: On Jan 22, 2013, at 11:17 PM, Bruce Ashfield wrote: On 13-01-23 12:14 AM, Patrick Turley wrote: On Jan 22, 2013, at 10:43 PM, Bruce Ashfield wrote: On 13-01-22 9:26 PM, Patrick Turley wrote: If I just hold down the "Enter" key, I believe all t

Re: [yocto] Build external module against Yocto kernel

2013-01-23 Thread Patrick Turley
On Jan 22, 2013, at 11:17 PM, Bruce Ashfield wrote: > On 13-01-23 12:14 AM, Patrick Turley wrote: >> On Jan 22, 2013, at 10:43 PM, Bruce Ashfield >> wrote: >>> On 13-01-22 9:26 PM, Patrick Turley wrote: If I just hold down the "Enter" key, I believe all the defaults are taken, and

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Bruce Ashfield
On 13-01-23 12:14 AM, Patrick Turley wrote: On Jan 22, 2013, at 10:43 PM, Bruce Ashfield wrote: On 13-01-22 9:26 PM, Patrick Turley wrote: If I just hold down the "Enter" key, I believe all the defaults are taken, and I eventually *do* get hostprogs that execute, but I don't know if they're

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Patrick Turley
On Jan 22, 2013, at 10:43 PM, Bruce Ashfield wrote: > On 13-01-22 9:26 PM, Patrick Turley wrote: >> If I just hold down the "Enter" key, I believe all the defaults are taken, >> and I eventually *do* get hostprogs that execute, but I don't know if >> they're appropriate to my kernel. (Again, I'

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Bruce Ashfield
On 13-01-22 9:26 PM, Patrick Turley wrote: On Jan 22, 2013, at 2:34 PM, Bruce Ashfield wrote: On 13-01-22 03:28 PM, Patrick Turley wrote: One problem I ran into … When I tried to execute "make scripts," I got a whole bunch of config questions that I *think* should have been answered with a .

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Patrick Turley
On Jan 22, 2013, at 2:34 PM, Bruce Ashfield wrote: > On 13-01-22 03:28 PM, Patrick Turley wrote: >> One problem I ran into … When I tried to execute "make scripts," I got a >> whole bunch of config questions that I *think* should have been answered >> with a .config file or something. Should I

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Bruce Ashfield
On 13-01-22 03:28 PM, Patrick Turley wrote: On Jan 16, 2013, at 11:11 AM, Darren Hart wrote: On 01/15/2013 10:38 AM, Bruce Ashfield wrote: I finally found the entries that I was recalling earlier. They are: https://bugzilla.yoctoproject.org/show_bug.cgi?id=241 https://bugzilla.yoctoproject.or

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Patrick Turley
On Jan 16, 2013, at 11:11 AM, Darren Hart wrote: > On 01/15/2013 10:38 AM, Bruce Ashfield wrote: >> I finally found the entries that I was recalling earlier. They are: >> >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=241 >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=1614 >> https://

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Patrick Turley
On Jan 15, 2013, at 1:16 PM, "Zhang, Jessica" wrote: > For your LDFLAGS question in another email thread, the yocto SDK is mainly > produced for application developer, but seems we are hearing more usage > request for it to support kernel module build as well. As Eric pointed, can > you just

Re: [yocto] Build external module against Yocto kernel

2013-01-22 Thread Christian Ege
Hi, I am not sure if this is the problem you are struggling with. I am wondering why class module.bbclass behaves completely different than kernel.bbclacc copy the "hello-mod_0.1.bb" and "files" folder into my taget layer "meta-intel/meta-jasperforest/recipe-kernel", then add "MACHINE_EXTRA_

Re: [yocto] Build external module against Yocto kernel

2013-01-21 Thread Patrick Turley
On Jan 16, 2013, at 11:11 AM, Darren Hart wrote: > On 01/15/2013 10:38 AM, Bruce Ashfield wrote: >> >> I finally found the entries that I was recalling earlier. They are: >> >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=241 >> https://bugzilla.yoctoproject.org/show_bug.cgi?id=1614 >> http

Re: [yocto] Build external module against Yocto kernel

2013-01-16 Thread Darren Hart
On 01/15/2013 10:38 AM, Bruce Ashfield wrote: > On 13-01-15 01:26 PM, Patrick Turley wrote: >> On Jan 15, 2013, at 12:00 PM, Bruce Ashfield >> wrote: >> >>> On 13-01-15 12:54 PM, Patrick Turley wrote: Thank you for directing me toward that documentation. As it happens, I have already

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Zhang, Jessica
..@yoctoproject.org] On Behalf Of Bruce Ashfield Sent: Tuesday, January 15, 2013 10:38 AM To: Patrick Turley Cc: yocto@yoctoproject.org; Darren Hart; Brian Lloyd Subject: Re: [yocto] Build external module against Yocto kernel On 13-01-15 01:26 PM, Patrick Turley wrote: > On Jan 15, 2013, at 12:0

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Bruce Ashfield
On 13-01-15 01:26 PM, Patrick Turley wrote: On Jan 15, 2013, at 12:00 PM, Bruce Ashfield wrote: On 13-01-15 12:54 PM, Patrick Turley wrote: Thank you for directing me toward that documentation. As it happens, I have already read that, and it doesn't apply. There are ways to do this, your

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Patrick Turley
On Jan 15, 2013, at 12:00 PM, Bruce Ashfield wrote: > On 13-01-15 12:54 PM, Patrick Turley wrote: >> Thank you for directing me toward that documentation. As it happens, I >> have already read that, and it doesn't apply. > > There are ways to do this, your requirement is the same as the on-targ

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Bruce Ashfield
On 13-01-15 12:54 PM, Patrick Turley wrote: Thank you for directing me toward that documentation. As it happens, I have already read that, and it doesn't apply. The section you mentioned begins with this text: While it is always preferable to work with sources integrated into the Linux

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Patrick Turley
Thank you for directing me toward that documentation. As it happens, I have already read that, and it doesn't apply. The section you mentioned begins with this text: While it is always preferable to work with sources integrated into the Linux kernel sources, if you need an external kernel modul

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Brian Lloyd
Or better yet, now that it is past initial, use http://www.yoctoproject.org/docs/1.4/kernel-dev/kernel-dev.html#incorporating-out-of-tree-modules. :) It worked fine for 1.2 (denzil) for me, though it is written for a later one. Brian On Tue, 2013-01-15 at 11:07 -0600, Brian Lloyd wrote: > Try

Re: [yocto] Build external module against Yocto kernel

2013-01-15 Thread Brian Lloyd
Try this in work documentation and let us know how it helps or if there is something missing that would help more: http://www.yoctoproject.org/docs/hart/kernel-dev/kernel-dev.html#incorporating-out-of-tree-modules I just did the exact same thing and was happy to discover there is support in yocto

[yocto] Build external module against Yocto kernel

2013-01-14 Thread Patrick Turley
I have to build a module from a third-party that has nothing to do with Yocto. I want to build this module against the kernel Yocto is giving me. The Make file for this module has a build command like this: make -C $(LINUX_DIR) M=`pwd` $(ENV) \ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" modules