Patchwork kernel.bbclass: don't install initramfs bundled kernel image

login
register
mail settings
Submitter Ming Liu
Date July 24, 2014, 10:25 a.m.
Message ID <1406197531-8298-1-git-send-email-ming.liu@windriver.com>
Download mbox | patch
Permalink /patch/76575/
State New
Headers show

Comments

Ming Liu - July 24, 2014, 10:25 a.m.
There is no dependency relationship between the tasks bundle_initramfs
and package so far, therefore we never should install the bundled image
anyway, otherwise we will end up with a implicit kernel-image package
that sometimes it contains the initramfs bundled image or it doesn't at
other times.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 meta/classes/kernel.bbclass | 4 ----
 1 file changed, 4 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index b2e9d4c..bb19b5c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -135,10 +135,6 @@  do_bundle_initramfs () {
 		kernel_do_compile
 		mv -f ${KERNEL_OUTPUT} ${KERNEL_OUTPUT}.initramfs
 		mv -f ${KERNEL_OUTPUT}.bak ${KERNEL_OUTPUT}
-		# Update install area
-		echo "There is kernel image bundled with initramfs: ${B}/${KERNEL_OUTPUT}.initramfs"
-		install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${D}/boot/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin
-		echo "${B}/${KERNEL_OUTPUT}.initramfs"
 	fi
 }