[OE-core] [PATCH V3 1/3] kernel.bbclass: do not install initramfs bundled kernel image
Ming Liu
liu.ming50 at gmail.com
Fri Jan 29 06:40:17 UTC 2016
From: Ming Liu <peter.x.liu at external.atlascopco.com>
It makes no sense to install a initramfs bundled kernel image since
do_package does not depend on do_bundle_initramfs at all, otherwise, it
leads to a impicit kernel-image package depending on do_package run before
or after do_bundle_initramfs.
And for some reason, we can not add a intertask dependency between
do_package and do_bundle_initramfs, that would introduce a circular
dependency in following scenarios:
1 Some kernel modules have been added into INITRAMFS_IMAGE.
2 INITRAMFS_IMAGE has been bundled into kernel image.
3 kernel-image package has been added into core image's IMAGE_INSTALL.
We need firgure out another way to fix this problem.
Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
---
meta/classes/kernel.bbclass | 4 ----
1 file changed, 4 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f37affc..a3b33d0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -179,10 +179,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
}
--
1.9.1
More information about the Openembedded-core
mailing list