Skip to contentSkip to conversation

kernel.bbclass fix and cleanup

PATCH Applied Darren Hart 2 participants 4 messages Apr 19, 2011

lore
Share & tools
lore
#0 lore raw

cover kernel.bbclass fix and cleanup

From: Darren Hart <[email protected]>

The following commit introduced a build bug and left some debug lying around.

commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
Author: Darren Hart <[email protected]>
Date: Tue Mar 8 17:09:10 2011 -0800
kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules

The following 2 patches address that.

Thanks,
Darren Hart <[email protected]>
---

Darren Hart (2):
kernel: Copy over bzImage to sysroots during install
kernel: Remove debug statements

 meta/classes/kernel.bbclass |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/2 kernel: Copy over bzImage to sysroots during install

From: Darren Hart <[email protected]>

Fixes [Yocto #987]

The following commit introduced a build failure:

Commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
Author: Darren Hart <[email protected]>
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.

Cc Tom Zanussi <[email protected]>
Cc Bruce Ashfield <[email protected]>
---
 meta/classes/kernel.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/kernel.bbclass +1 -0
index 3107790..c443285 100644
@@ -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
 
Signature · 1 line
1.7.3.4
#2 lore raw

PATCH 2/2 kernel: Remove debug statements

In reply to Darren Hart

From: Darren Hart <[email protected]>

A stray echo and du command from my development of the following patch remain in kernel.bbclass. Remove them.

commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
Author: Darren Hart <[email protected]>
Date: Tue Mar 8 17:09:10 2011 -0800
kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules

Cc Tom Zanussi <[email protected]>
Cc Bruce Ashfield <[email protected]>
---
 meta/classes/kernel.bbclass |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
meta/classes/kernel.bbclass +0 -2
index c443285..fd1c8e3 100644
@@ -137,8 +137,6 @@ kernel_do_install() {
 		cp -fR ${S}/* $kerneldir
 	fi
 	install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE}
-	echo "LINUX BUILD TREE COPIED TO SYSROOTS"
-	du -hs $kerneldir
 
 	#
 	# Clean and remove files not needed for building modules.
Signature · 1 line
1.7.3.4
#3 lore raw
In reply to Darren Hart
Quoted 12 lines · Darren Hart

From: Darren Hart <[email protected]>

The following commit introduced a build bug and left some debug lying around.

commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58
Author: Darren Hart <[email protected]>
Date: Tue Mar 8 17:09:10 2011 -0800
kernel/bbclass: rework kernel and module classes to allow for building out-of-tree modules

The following 2 patches address that.

Quoted 8 lines

Thanks,
Darren Hart <[email protected]>
---

Darren Hart (2):
kernel: Copy over bzImage to sysroots during install
kernel: Remove debug statements

Merged to master, thanks.

Richard