[OE-core] [PATCH V3 2/3] image.bbclass: removes bundle_initramfs related code
Ming Liu
liu.ming50 at gmail.com
Fri Jan 29 06:40:18 UTC 2016
From: Ming Liu <peter.x.liu at external.atlascopco.com>
The original purpose of these code is to repackage initramfs bundled kernel
into rootfs by making image.bbclass build depend on bundle_initramfs of
virtual/kernel. But this is not going to succeed because virtual/kernel's
do_package is not depending on its bundle_initramfs.
We must figure out another way to package initramfs bundled kernel.
Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
---
meta/classes/image.bbclass | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 56a49e7..87645a0 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -167,10 +167,6 @@ python () {
d.setVar('IMAGE_FEATURES', ' '.join(list(remain_features)))
check_image_features(d)
- initramfs_image = d.getVar('INITRAMFS_IMAGE', True) or ""
- if initramfs_image != "":
- d.appendVarFlag('do_build', 'depends', " %s:do_bundle_initramfs" % d.getVar('PN', True))
- d.appendVarFlag('do_bundle_initramfs', 'depends', " %s:do_image_complete" % initramfs_image)
}
IMAGE_CLASSES += "image_types"
@@ -511,12 +507,3 @@ do_packagedata[noexec] = "1"
do_package_write_ipk[noexec] = "1"
do_package_write_deb[noexec] = "1"
do_package_write_rpm[noexec] = "1"
-
-# Allow the kernel to be repacked with the initramfs and boot image file as a single file
-do_bundle_initramfs[depends] += "virtual/kernel:do_bundle_initramfs"
-do_bundle_initramfs[nostamp] = "1"
-do_bundle_initramfs[noexec] = "1"
-do_bundle_initramfs () {
- :
-}
-addtask bundle_initramfs after do_image_complete
--
1.9.1
More information about the Openembedded-core
mailing list