From b6cc4bc217e695801db060a1366915a870cab5db Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Wed, 29 Sep 2010 22:27:35 +0200 Subject: [PATCH] kernel.bbclass: avoid NOTE messages for files that are staged but not packaged 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 Acked-by: Roman I Khimov Tested-by: Petr Stetiar Acked-by: Eric Benard Acked-by: Denys Dmytriyenko Tested-by: Paul Menzel --- classes/kernel.bbclass | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 5f8bc8a905..cfb4ad8826 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 -- 2.39.5