All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] kernel NOTE messages fix
@ 2010-09-28 16:39 Frans Meulenbroeks
  2010-09-28 17:04 ` Denys Dmytriyenko
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Frans Meulenbroeks @ 2010-09-28 16:39 UTC (permalink / raw)
  To: openembedded-devel

Dear all,

Earlier today Henning and I (tirggered by ynezz) had a discussion on
irc on the loooong list of kernel NOTE messages.
(things like: NOTE: /kernel/arch/arm/mach-at91/at91x40_time.c)
This was also discussed earlier with Eric Benard (also on irc).
I promised Henning that I should write a note (pun intended :-) ) to
the list, and here it is.

Basically the issue is that kernel.bbclass in kernel_do_install copies
a lot of files to ${D} so that eventually they end up in staging (this
copying is done in sysroot_stage_all_append ). These files are not
added to any package so insane.bbclass (or is it sane.bbclass
nowadays) barfs about these files.
The reason these files end up in staging is for building out-of-tree
kernel modules.

As it stands we see 3 solutions:

1) rm -rf the files in sysroot_stage_all_append after staging them
issue is that packaging can run in parallel, so in order to do this
these these two tasks need to be serialized

2) add them to kernel-dev. That way the NOTE disappears. However this
does increase the kernel-dev package size with 90 MB or so.
Technically it would allow building out-of-kernel modules on the
target. Then again currently this is not possible and I have never
heard complaints about it (actually for embedded systems it is often
not a good plan to build on the target, although with current high end
systems this becomes more feasible).

3) copy the files directly from the work area to staging. That way
there are no unpackaged files in image/ so no NOTE messages.
Additional advantage is that it is faster as we save the copy to the image dir.

The following patch makes (3) happen:

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 5f8bc8a..05ddcc1 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -121,7 +121,12 @@ kernel_do_install() {
                 oe_runmake SUBDIRS="scripts/genksyms"
         fi

-       kerneldir=${D}/kernel/
+
+}
+
+sysroot_stage_all_append() {
+
+        kerneldir=${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}

        if [ -e include/asm ] ; then
                # This link is generated only in kernel before
2.6.33-rc1, don't stage it for newer kernels
@@ -197,12 +202,7 @@ kernel_do_install() {
        install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION}
        [ -e Module.symvers ] && install -m 0644 Module.symvers $kerneldir/

-       cp -fR scripts $kerneldir/
-}
-
-sysroot_stage_all_append() {
-       sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
-       cp -fpPR ${D}/kernel/.config ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
+       cp -fR scripts $kerneldir/
 }

 kernel_do_configure() {

I have tested this patch and for me it works fine and building the
kernel is greatly improved (mostly due to the NOTE messages that are
not generated, but also partly due to the copying step that is
avoided, so personally I am quite happy with this one.

But before committing this patch I'd like to discuss this on the list.
Your response is appreciated.

Frans.

PS: anyone an idea why these NOTE messages take so long time? I must
say I never timed it, but I heard people say 2 messages/sec, which
seems quite slow.



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
@ 2010-09-28 17:04 ` Denys Dmytriyenko
  2010-09-28 17:15 ` Roman I Khimov
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Denys Dmytriyenko @ 2010-09-28 17:04 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Sep 28, 2010 at 06:39:42PM +0200, Frans Meulenbroeks wrote:
> Dear all,
> 
> Earlier today Henning and I (tirggered by ynezz) had a discussion on
> irc on the loooong list of kernel NOTE messages.
> (things like: NOTE: /kernel/arch/arm/mach-at91/at91x40_time.c)
> This was also discussed earlier with Eric Benard (also on irc).
> I promised Henning that I should write a note (pun intended :-) ) to
> the list, and here it is.
> 
> Basically the issue is that kernel.bbclass in kernel_do_install copies
> a lot of files to ${D} so that eventually they end up in staging (this
> copying is done in sysroot_stage_all_append ). These files are not
> added to any package so insane.bbclass (or is it sane.bbclass
> nowadays) barfs about these files.
> The reason these files end up in staging is for building out-of-tree
> kernel modules.

Frans,

Thank you for taking care of this annoyance! I'm personally fine with 
your solution #3, as the simplest and cleanest one.

-- 
Denys


> As it stands we see 3 solutions:
> 
> 1) rm -rf the files in sysroot_stage_all_append after staging them
> issue is that packaging can run in parallel, so in order to do this
> these these two tasks need to be serialized
> 
> 2) add them to kernel-dev. That way the NOTE disappears. However this
> does increase the kernel-dev package size with 90 MB or so.
> Technically it would allow building out-of-kernel modules on the
> target. Then again currently this is not possible and I have never
> heard complaints about it (actually for embedded systems it is often
> not a good plan to build on the target, although with current high end
> systems this becomes more feasible).
> 
> 3) copy the files directly from the work area to staging. That way
> there are no unpackaged files in image/ so no NOTE messages.
> Additional advantage is that it is faster as we save the copy to the image dir.
> 
> The following patch makes (3) happen:
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 5f8bc8a..05ddcc1 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -121,7 +121,12 @@ kernel_do_install() {
>                  oe_runmake SUBDIRS="scripts/genksyms"
>          fi
> 
> -       kerneldir=${D}/kernel/
> +
> +}
> +
> +sysroot_stage_all_append() {
> +
> +        kerneldir=${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
> 
>         if [ -e include/asm ] ; then
>                 # This link is generated only in kernel before
> 2.6.33-rc1, don't stage it for newer kernels
> @@ -197,12 +202,7 @@ kernel_do_install() {
>         install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION}
>         [ -e Module.symvers ] && install -m 0644 Module.symvers $kerneldir/
> 
> -       cp -fR scripts $kerneldir/
> -}
> -
> -sysroot_stage_all_append() {
> -       sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
> -       cp -fpPR ${D}/kernel/.config ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
> +       cp -fR scripts $kerneldir/
>  }
> 
>  kernel_do_configure() {
> 
> I have tested this patch and for me it works fine and building the
> kernel is greatly improved (mostly due to the NOTE messages that are
> not generated, but also partly due to the copying step that is
> avoided, so personally I am quite happy with this one.
> 
> But before committing this patch I'd like to discuss this on the list.
> Your response is appreciated.
> 
> Frans.
> 
> PS: anyone an idea why these NOTE messages take so long time? I must
> say I never timed it, but I heard people say 2 messages/sec, which
> seems quite slow.
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
  2010-09-28 17:04 ` Denys Dmytriyenko
@ 2010-09-28 17:15 ` Roman I Khimov
  2010-09-28 20:06 ` Tom Rini
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Roman I Khimov @ 2010-09-28 17:15 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: Text/Plain, Size: 775 bytes --]

В сообщении от Вторник 28 сентября 2010 20:39:42 автор Frans Meulenbroeks 
написал:
> 3) copy the files directly from the work area to staging. That way
> there are no unpackaged files in image/ so no NOTE messages.
> Additional advantage is that it is faster as we save the copy to the image
>  dir.
> 
> The following patch makes (3) happen:
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 5f8bc8a..05ddcc1 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass

I hate those NOTEs. The patch looks good. Thanks!

Acked-by: Roman I Khimov <khimov@altell.ru>

-- 
 http://roman.khimov.ru
mailto: roman@khimov.ru
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 0xE5E055C3

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
  2010-09-28 17:04 ` Denys Dmytriyenko
  2010-09-28 17:15 ` Roman I Khimov
@ 2010-09-28 20:06 ` Tom Rini
  2010-09-28 21:16   ` Petr Štetiar
  2010-09-28 21:14 ` Petr Štetiar
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2010-09-28 20:06 UTC (permalink / raw)
  To: openembedded-devel

Frans Meulenbroeks wrote:

[snip]
> 2) add them to kernel-dev. That way the NOTE disappears. However this
> does increase the kernel-dev package size with 90 MB or so.
> Technically it would allow building out-of-kernel modules on the
> target. Then again currently this is not possible and I have never
> heard complaints about it (actually for embedded systems it is often
> not a good plan to build on the target, although with current high end
> systems this becomes more feasible).

Did you try implementing this?  Without a few other changes (that I 
couldn't get 100% right) there's problems with the scripts/ and 
arch/$ARCH/boot/ tools being the wrong binary format.  Which is a shame 
as we could provide a kernel-src package with that stuff fixed.

-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
                   ` (2 preceding siblings ...)
  2010-09-28 20:06 ` Tom Rini
@ 2010-09-28 21:14 ` Petr Štetiar
  2010-09-29  6:34 ` Eric Bénard
  2010-09-29 18:37 ` Denys Dmytriyenko
  5 siblings, 0 replies; 11+ messages in thread
From: Petr Štetiar @ 2010-09-28 21:14 UTC (permalink / raw)
  To: openembedded-devel

Frans Meulenbroeks <fransmeulenbroeks@gmail.com> [2010-09-28 18:39:42]:

> The following patch makes (3) happen:
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 5f8bc8a..05ddcc1 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -121,7 +121,12 @@ kernel_do_install() {

Hi and thanks! You can add my tested-by, if you wish.

Tested-by: Petr Štetiar <ynezz@true.cz>

-- ynezz



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 20:06 ` Tom Rini
@ 2010-09-28 21:16   ` Petr Štetiar
  0 siblings, 0 replies; 11+ messages in thread
From: Petr Štetiar @ 2010-09-28 21:16 UTC (permalink / raw)
  To: openembedded-devel

Tom Rini <tom_rini@mentor.com> [2010-09-28 13:06:30]:

[snip]

> Did you try implementing this?  Without a few other changes (that I  
> couldn't get 100% right) there's problems with the scripts/ and  
> arch/$ARCH/boot/ tools being the wrong binary format.

Yes, we've tried it as first step with wooglinde, but ended on the same errors
you're experiencing.

-- ynezz



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
                   ` (3 preceding siblings ...)
  2010-09-28 21:14 ` Petr Štetiar
@ 2010-09-29  6:34 ` Eric Bénard
  2010-09-29  6:46   ` Frans Meulenbroeks
  2010-09-29 18:37 ` Denys Dmytriyenko
  5 siblings, 1 reply; 11+ messages in thread
From: Eric Bénard @ 2010-09-29  6:34 UTC (permalink / raw)
  To: openembedded-devel

Hi Frans,

Le 28/09/2010 18:39, Frans Meulenbroeks a écrit :
> Earlier today Henning and I (tirggered by ynezz) had a discussion on
> irc on the loooong list of kernel NOTE messages.
> (things like: NOTE: /kernel/arch/arm/mach-at91/at91x40_time.c)
> This was also discussed earlier with Eric Benard (also on irc).
> I promised Henning that I should write a note (pun intended :-) ) to
> the list, and here it is.

yes, I was supposed to make a patch for this but didn't found the time 
yet, Thanks for taking this.

> 3) copy the files directly from the work area to staging. That way
> there are no unpackaged files in image/ so no NOTE messages.
> Additional advantage is that it is faster as we save the copy to the image dir.
>
> The following patch makes (3) happen:
>
Acked-by: Eric Bénard <eric@eukrea.com>

Eric



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-29  6:34 ` Eric Bénard
@ 2010-09-29  6:46   ` Frans Meulenbroeks
  2010-09-29 18:18     ` Tom Rini
  0 siblings, 1 reply; 11+ messages in thread
From: Frans Meulenbroeks @ 2010-09-29  6:46 UTC (permalink / raw)
  To: openembedded-devel

Thanks for the feedback and the acks.
I'll make a formal patch for this and push it with the acks added.
Maybe this evening otherwise tomorrow (but if someone can't wait so
long feel free to make the patch (but please let me know on irc, so we
do not end up duplicating things))

Wrt the kernel-dev route: I didn't try it, as Henning & Petr (and
maybe also Eric) tried this before.

Tom, I do encounter issues with scripts and strip either. They are
still on my to-investigate list and are not related to the issue at
hand, but when building slugos-image for nslu2 I get the messages
given below. Guess this is the same problem you are facing.

I'm open for hints on how to fix this one.

Frans.

ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/bin2c''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/kconfig/conf''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/basic/fixdep''
strip commarmeb-linux-gnueabi-strip: Unable to recognise the format of
the input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/genksyms/genksyms'
armeb-linux-gnueabi-objcopy: Unable to recognise the format of the
input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/genksyms/genksyms'
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/bin2c''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/kconfig/conf''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/basic/fixdep''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/basic/docproc''
strip command failed
ERROR:armeb-linux-gnueabi-objcopy: Unable to recognise the format of
the input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/mk_elfconfig'
armeb-linux-gnueabi-strip: Unable to recognise the format of the input
file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/mk_elfconfig'
armeb-linux-gnueabi-objcopy: Unable to recognise the format of the
input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/mk_elfconfig'
armeb-linux-gnueabi-objcopy: Unable to recognise the format of the
input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/modpost'
armeb-linux-gnueabi-strip: Unable to recognise the format of the input
file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/modpost'
armeb-linux-gnueabi-objcopy: Unable to recognise the format of the
input file `/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/modpost'
and failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/basic/docproc''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/genksyms/genksyms''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/mk_elfconfig''
strip command failed
ERROR: runstrip: ''armeb-linux-gnueabi-strip'
--remove-section=.comment --remove-section=.note
'/home/hudson/jobs/FM_TEST/workspace/tmp/work/nslu2be-linux-gnueabi/linux-ixp4xx-2.6.27.8+svnr1090-r2/package/kernel/scripts/mod/modpost''
strip command failed



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-29  6:46   ` Frans Meulenbroeks
@ 2010-09-29 18:18     ` Tom Rini
  0 siblings, 0 replies; 11+ messages in thread
From: Tom Rini @ 2010-09-29 18:18 UTC (permalink / raw)
  To: openembedded-devel

Frans Meulenbroeks wrote:
> Thanks for the feedback and the acks.
> I'll make a formal patch for this and push it with the acks added.
> Maybe this evening otherwise tomorrow (but if someone can't wait so
> long feel free to make the patch (but please let me know on irc, so we
> do not end up duplicating things))
> 
> Wrt the kernel-dev route: I didn't try it, as Henning & Petr (and
> maybe also Eric) tried this before.
> 
> Tom, I do encounter issues with scripts and strip either. They are
> still on my to-investigate list and are not related to the issue at
> hand, but when building slugos-image for nslu2 I get the messages
> given below. Guess this is the same problem you are facing.
> 
> I'm open for hints on how to fix this one.

I think something like:
- Copy sources, cd to dest
- Backup .config
- make mrproper
- Restore .config to destdir
- make ... modules_prep or so (don't have it off-hand, but make help 
shows) which gets things valid again for external modules to build.

Problem is that (a) that won't work on 2.4 and (b) I don't know how far 
back, off-hand, that make target exists in 2.6.

-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
                   ` (4 preceding siblings ...)
  2010-09-29  6:34 ` Eric Bénard
@ 2010-09-29 18:37 ` Denys Dmytriyenko
  2010-09-29 20:16   ` Frans Meulenbroeks
  5 siblings, 1 reply; 11+ messages in thread
From: Denys Dmytriyenko @ 2010-09-29 18:37 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Sep 28, 2010 at 06:39:42PM +0200, Frans Meulenbroeks wrote:
> Dear all,
> 
> 3) copy the files directly from the work area to staging. That way
> there are no unpackaged files in image/ so no NOTE messages.
> Additional advantage is that it is faster as we save the copy to the image dir.
> 
> The following patch makes (3) happen:
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 5f8bc8a..05ddcc1 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -121,7 +121,12 @@ kernel_do_install() {
>                  oe_runmake SUBDIRS="scripts/genksyms"
>          fi
> 
> -       kerneldir=${D}/kernel/
> +
> +}
> +
> +sysroot_stage_all_append() {
> +
> +        kerneldir=${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
> 
>         if [ -e include/asm ] ; then
>                 # This link is generated only in kernel before
> 2.6.33-rc1, don't stage it for newer kernels
> @@ -197,12 +202,7 @@ kernel_do_install() {
>         install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION}
>         [ -e Module.symvers ] && install -m 0644 Module.symvers $kerneldir/
> 
> -       cp -fR scripts $kerneldir/
> -}
> -
> -sysroot_stage_all_append() {
> -       sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}

BTW, won't this patch break packaged-staging? Has anyone tried rebuilding from 
pstage after this fix?

> -       cp -fpPR ${D}/kernel/.config ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
> +       cp -fR scripts $kerneldir/
>  }
> 
>  kernel_do_configure() {

-- 
Denys



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [RFC] kernel NOTE messages fix
  2010-09-29 18:37 ` Denys Dmytriyenko
@ 2010-09-29 20:16   ` Frans Meulenbroeks
  0 siblings, 0 replies; 11+ messages in thread
From: Frans Meulenbroeks @ 2010-09-29 20:16 UTC (permalink / raw)
  To: openembedded-devel

2010/9/29 Denys Dmytriyenko <denis@denix.org>:
> On Tue, Sep 28, 2010 at 06:39:42PM +0200, Frans Meulenbroeks wrote:

>> -sysroot_stage_all_append() {
>> -       sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}
>
> BTW, won't this patch break packaged-staging? Has anyone tried rebuilding from
> pstage after this fix?

I don't think it will break packaged staging. This is the function
sysroot_stage_dir:

sysroot_stage_dir() {
        src="$1"
        dest="$2"
        # This will remove empty directories so we can ignore them
        rmdir "$src" 2> /dev/null || true
        if [ -d "$src" ]; then
                mkdir -p "$dest"
                cp -fpPR "$src"/* "$dest"
        fi
}

Nothing related to packaged staging here.
And we still copy to ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR} (which is
the place where I assume things are packaged from)

Frans



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-09-29 20:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 16:39 [RFC] kernel NOTE messages fix Frans Meulenbroeks
2010-09-28 17:04 ` Denys Dmytriyenko
2010-09-28 17:15 ` Roman I Khimov
2010-09-28 20:06 ` Tom Rini
2010-09-28 21:16   ` Petr Štetiar
2010-09-28 21:14 ` Petr Štetiar
2010-09-29  6:34 ` Eric Bénard
2010-09-29  6:46   ` Frans Meulenbroeks
2010-09-29 18:18     ` Tom Rini
2010-09-29 18:37 ` Denys Dmytriyenko
2010-09-29 20:16   ` Frans Meulenbroeks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.