Patchwork [1/2] kernel: Copy over bzImage to sysroots during install

login
register
mail settings
Submitter Darren Hart
Date April 19, 2011, 3:11 p.m.
Message ID <1465094fd0cc3ac1be3073a0f44196f17f329b05.1303170477.git.dvhart@linux.intel.com>
Download mbox | patch
Permalink /patch/2507/
State New, archived
Headers show

Comments

Darren Hart - April 19, 2011, 3:11 p.m.
From: Darren Hart <dvhart@linux.intel.com>

Fixes [Yocto #987]

The following commit introduced a build failure:

Commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
Author: Darren Hart <dvhart@linux.intel.com>
Date:   Tue Mar 8 17:09:10 2011 -0800
kernel/bbclass: rework kernel and module classes to allow for building
out-of-tree modules

Resulting in:
| install: cannot stat
`/usr/local/test/intel-bsp/build/tmp/sysroots/n450/kernel/bzImage': No such
file or directory
| ERROR: Function 'build_boot_bin' failed (see
/usr/local/test/intel-bsp/build/tmp/work/core2-poky-linux/poky-image-minimal-live-1.0-r0/temp/log.do_bootimg.1106
for further information)

The bzImage file was not being copied to sysroot, correct that.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
---
 meta/classes/kernel.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 3107790..c443285 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -136,6 +136,7 @@  kernel_do_install() {
 	if [ ! "${S}" == "${B}" ]; then
 		cp -fR ${S}/* $kerneldir
 	fi
+	install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE}
 	echo "LINUX BUILD TREE COPIED TO SYSROOTS"
 	du -hs $kerneldir