kernel.bbclass: avoid NOTE messages for files that are staged but not packaged
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Wed, 29 Sep 2010 20:27:35 +0000 (22:27 +0200)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 30 Sep 2010 19:39:41 +0000 (21:39 +0200)
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@gmail.com>
Acked-by: Roman I Khimov <khimov@altell.ru>
Tested-by: Petr Stetiar <ynezz@true.cz>
Acked-by: Eric Benard <eric@eukrea.com>
Acked-by: Denys Dmytriyenko <denis@denix.org>
Tested-by: Paul Menzel <paulepanter@users.sourceforge.net>
classes/kernel.bbclass

index 5f8bc8a..cfb4ad8 100644 (file)
@@ -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