Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
On Tue, Nov 19, 2013 at 9:59 PM, Khem Raj wrote: > > On Nov 19, 2013, at 2:45 PM, Richard Purdie > wrote: > >> On Tue, 2013-11-19 at 14:39 -0800, Khem Raj wrote: >>> On Nov 19, 2013, at 2:36 PM, Richard Purdie >>> wrote: >>> On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: > We

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Khem Raj
On Nov 19, 2013, at 2:45 PM, Richard Purdie wrote: > On Tue, 2013-11-19 at 14:39 -0800, Khem Raj wrote: >> On Nov 19, 2013, at 2:36 PM, Richard Purdie >> wrote: >> >>> On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: >>> Well reproducer case is that build from sstate but such that an

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
On Tue, Nov 19, 2013 at 6:44 PM, Phil Blundell wrote: > On Tue, 2013-11-19 at 17:37 -0500, Bruce Ashfield wrote: >> Alternatively, recipes need to be fixed to call the >> modules-base.bbclass routine to restore >> scripts, and I think it is obvious that won't work in all cases. > > Admittedly I'm

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Richard Purdie
On Tue, 2013-11-19 at 14:39 -0800, Khem Raj wrote: > On Nov 19, 2013, at 2:36 PM, Richard Purdie > wrote: > > > On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: > > > >> Well reproducer case is that build from sstate but such that an external > >> module needs to be rebuilt > >> if external

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
On Tue, Nov 19, 2013 at 5:42 PM, Richard Purdie wrote: > On Tue, 2013-11-19 at 17:37 -0500, Bruce Ashfield wrote: >> >> Exactly. And I had windriver bug with the same symptoms as yours. It >> was a package >> that built its own modules, and hence never called this either. >> >> > and my recipes di

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Phil Blundell
On Tue, 2013-11-19 at 17:37 -0500, Bruce Ashfield wrote: > Alternatively, recipes need to be fixed to call the > modules-base.bbclass routine to restore > scripts, and I think it is obvious that won't work in all cases. Admittedly I'm no expert, but this is not obvious to me. Why can't those reci

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Richard Purdie
On Tue, 2013-11-19 at 17:37 -0500, Bruce Ashfield wrote: > > Exactly. And I had windriver bug with the same symptoms as yours. It > was a package > that built its own modules, and hence never called this either. > > > and my recipes did override module_do_compile task but not do_compile like > >

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Phil Blundell
On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: > Well reproducer case is that build from sstate but such that an external > module needs to be rebuilt > if external module also comes from sstate then it all is fine. Its only when > everything is coming from > sstate except this external modul

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Khem Raj
On Nov 19, 2013, at 2:36 PM, Richard Purdie wrote: > On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: > >> Well reproducer case is that build from sstate but such that an external >> module needs to be rebuilt >> if external module also comes from sstate then it all is fine. Its only when

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
On Tue, Nov 19, 2013 at 5:29 PM, Khem Raj wrote: > > On Nov 19, 2013, at 10:17 AM, Bruce Ashfield wrote: > >> Adding Khem. >> >> Khem .. see below. >> >> On Tue, Nov 19, 2013 at 12:54 PM, Bruce Ashfield >> wrote: >>> On Tue, Nov 19, 2013 at 12:46 PM, Phil Blundell wrote: On Tue, 2013-11-19

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Richard Purdie
On Tue, 2013-11-19 at 14:29 -0800, Khem Raj wrote: > Well reproducer case is that build from sstate but such that an external > module needs to be rebuilt > if external module also comes from sstate then it all is fine. Its only when > everything is coming from > sstate except this external modu

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Khem Raj
On Nov 19, 2013, at 10:17 AM, Bruce Ashfield wrote: > Adding Khem. > > Khem .. see below. > > On Tue, Nov 19, 2013 at 12:54 PM, Bruce Ashfield > wrote: >> On Tue, Nov 19, 2013 at 12:46 PM, Phil Blundell wrote: >>> On Tue, 2013-11-19 at 17:37 +, Mike Crowe wrote: On Tuesday 08 Octobe

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
Adding Khem. Khem .. see below. On Tue, Nov 19, 2013 at 12:54 PM, Bruce Ashfield wrote: > On Tue, Nov 19, 2013 at 12:46 PM, Phil Blundell wrote: >> On Tue, 2013-11-19 at 17:37 +, Mike Crowe wrote: >>> On Tuesday 08 October 2013 at 17:12:54 -0400, Bruce Ashfield wrote: >>> > When building ag

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Bruce Ashfield
On Tue, Nov 19, 2013 at 12:46 PM, Phil Blundell wrote: > On Tue, 2013-11-19 at 17:37 +, Mike Crowe wrote: >> On Tuesday 08 October 2013 at 17:12:54 -0400, Bruce Ashfield wrote: >> > When building against the sysroot, out of tree modules can require modpost >> > and other utilities normally fou

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Phil Blundell
On Tue, 2013-11-19 at 17:37 +, Mike Crowe wrote: > On Tuesday 08 October 2013 at 17:12:54 -0400, Bruce Ashfield wrote: > > When building against the sysroot, out of tree modules can require modpost > > and other utilities normally found in the kernel's scripts directory. For > > the kernel sour

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-11-19 Thread Mike Crowe
On Tuesday 08 October 2013 at 17:12:54 -0400, Bruce Ashfield wrote: > When building against the sysroot, out of tree modules can require modpost > and other utilities normally found in the kernel's scripts directory. For > the kernel source in the staging dir, these scripts have been removed to > a

[OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-08 Thread Bruce Ashfield
When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these scripts have been removed to avoid mixing archiectures when packaging kernel-dev (among other things). Ra

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-07 Thread Bruce Ashfield
On 13-10-07 12:18 PM, Richard Purdie wrote: On Mon, 2013-10-07 at 11:20 -0400, Bruce Ashfield wrote: I had it slightly wrong. Try: kernelheaders_sstate_postinst () { if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ] then

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-07 Thread Richard Purdie
On Mon, 2013-10-07 at 11:20 -0400, Bruce Ashfield wrote: > I had it slightly wrong. Try: > > > > kernelheaders_sstate_postinst () { > > if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = > > "populate_sysroot_setscene" ] > > then > > ( cd ${KERNEL_SRC_PATH}

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-07 Thread Bruce Ashfield
On 13-10-07 05:58 AM, Richard Purdie wrote: On Mon, 2013-10-07 at 01:02 -0400, Bruce Ashfield wrote: On 13-10-04 3:46 AM, Richard Purdie wrote: On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: When building against the sysroot, out of tree modules can require modpost and other utilitie

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-07 Thread Richard Purdie
On Mon, 2013-10-07 at 01:02 -0400, Bruce Ashfield wrote: > On 13-10-04 3:46 AM, Richard Purdie wrote: > > On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: > >> When building against the sysroot, out of tree modules can require modpost > >> and other utilities normally found in the kernel's

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-06 Thread Bruce Ashfield
On 13-10-04 3:46 AM, Richard Purdie wrote: On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these scr

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-04 Thread Khem Raj
Bruce Besides the sstate problem RP mentioned your patch worked fine. On Fri, Oct 4, 2013 at 5:42 AM, Bruce Ashfield wrote: > On 13-10-04 03:46 AM, Richard Purdie wrote: >> >> On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: >>> >>> When building against the sysroot, out of tree modules

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-04 Thread Bruce Ashfield
On 13-10-04 03:46 AM, Richard Purdie wrote: On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these sc

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-04 Thread Richard Purdie
On Thu, 2013-10-03 at 20:02 -0400, Bruce Ashfield wrote: > When building against the sysroot, out of tree modules can require modpost > and other utilities normally found in the kernel's scripts directory. For > the kernel source in the staging dir, these scripts have been removed to > avoid mixing

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-03 Thread Bruce Ashfield
On 13-10-03 8:58 PM, Khem Raj wrote: On Oct 3, 2013, at 5:02 PM, Bruce Ashfield wrote: When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these scripts have

Re: [OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-03 Thread Khem Raj
On Oct 3, 2013, at 5:02 PM, Bruce Ashfield wrote: > When building against the sysroot, out of tree modules can require modpost > and other utilities normally found in the kernel's scripts directory. For > the kernel source in the staging dir, these scripts have been removed to > avoid mixing arc

[OE-core] [PATCH 1/1] kernel: restore scripts in the sysroot

2013-10-03 Thread Bruce Ashfield
When building against the sysroot, out of tree modules can require modpost and other utilities normally found in the kernel's scripts directory. For the kernel source in the staging dir, these scripts have been removed to avoid mixing archiectures when packaging kernel-dev (among other things). Ra