[oe] [PATCH] kernel.bbclass: avoid NOTE messages for files that are staged but not packaged

Denys Dmytriyenko denis at denix.org
Wed Sep 29 21:03:05 UTC 2010


On Wed, Sep 29, 2010 at 10:39:58PM +0200, Frans Meulenbroeks wrote:
> 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.
> 
> See also http://thread.gmane.org/gmane.comp.handhelds.openembedded/37487
> 
> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
> Acked-by: Roman I Khimov <khimov at altell.ru>
> Tested-by: Petr ?tetiar <ynezz at true.cz>
> Acked-by: Eric B?nard <eric at eukrea.com>

Acked-by: Denys Dmytriyenko <denis at denix.org>

> ---
> 
> This is the formal patch, following up the discussion mentioned above
> It really works like a charm. Kernel build time is greatly reduced.
> 
> If there are no objections, and since there are already 2 acks,
> I will push tomorrow my evening (20 hrs or so after posting)
> Feel free to add additional acks.
> 
> Frans
> 
>  classes/kernel.bbclass |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 5f8bc8a..cfb4ad8 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
> @@ -200,11 +205,6 @@ kernel_do_install() {
>  	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}
> -}
> -
>  kernel_do_configure() {
>  	yes '' | oe_runmake oldconfig
>  	if [ ! -z "${INITRAMFS_IMAGE}" ]; then
> -- 
> 1.6.4.2
> 
> 
> _______________________________________________
> 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