Patchwork [CONSOLIDATED,PULL,14/19] kernel.bbclass: save kernel image name into $kerneldir

login
register
mail settings
Submitter Saul Wold
Date Aug. 22, 2011, 9:51 p.m.
Message ID <41ceda910baaa22b52bf7f79665c8d74421c9ef4.1314043945.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/10427/
State New, archived
Headers show

Comments

Saul Wold - Aug. 22, 2011, 9:51 p.m.
From: Otavio Salvador <otavio@ossystems.com.br>

Save the kernel image name into sysroot so it can be used during image
build if need. This is used by O.S. Systems products and probably
useful to others.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/classes/kernel.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a2b10f2..894ffb3 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -129,6 +129,12 @@  kernel_do_install() {
 	echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
 
 	#
+	# Store kernel image name to allow use during image generation
+	#
+
+	echo "${KERNEL_IMAGE_BASE_NAME}" >$kerneldir/kernel-image-name
+
+	#
 	# Copy the entire source tree. In case an external build directory is
 	# used, copy the build directory over first, then copy over the source
 	# dir. This ensures the original Makefiles are used and not the