kernel.bbclass: fix staging of .config
authorEric Benard <eric@eukrea.com>
Thu, 6 May 2010 16:00:58 +0000 (18:00 +0200)
committerTom Rini <tom_rini@mentor.com>
Fri, 7 May 2010 16:20:58 +0000 (09:20 -0700)
- in staging.bb : sysroot_stage_dir does : cp -fpPR "$src"/* "$dest"
which means it won't copy .config
- so do the copy of .config in sysroot_stage_all_append after
sysroot_stage_dir

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/kernel.bbclass

index 989d3e3..a157dfc 100644 (file)
@@ -203,6 +203,7 @@ kernel_do_install() {
 
 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() {