image.bbclass: drop initramfs bundle related code
PATCH v2 1/1 image.bbclass: drop initramfs bundle related code
From: Ming Liu <[email protected]>
Hi, OE maintainers:
Please help me review this patch or please feel free to comment on it if you think it's risky or something.
The patch has been being tested in our project for a long time, I think it fixes a performance issue and is safe to be merged, but I would appreciate to hear any options from you.
Ming Liu (1):
image.bbclass: drop initramfs bundle related code
meta/classes/image.bbclass | 13 ------------- 1 file changed, 13 deletions(-)
Signature · 1 line
2.7.4
PATCH v2 1/1 image.bbclass: drop initramfs bundle related code
From: Ming Liu <[email protected]>
The original purpose of this code snippet was to repackage initramfs bundled kernel images before do_image_complete, to be able to be included by rootfs, but it's not going to achieve that since the initramfs bundled kernel images are not even installed to ${D}/boot after commit a49569e3a7534779bbe3f01a0647fd076c95798d:
[ kernel.bbclass: do not copy bundled initramfs to /boot ]
So there is not a initramfs bundled kernel package at all, we should drop the code, because it is leading kernel do_initramfs_bundle unnecessarily rerun and it's very time consuming and hence is impacting the performance a lot.
--- meta/classes/image.bbclass | 13 ------------- 1 file changed, 13 deletions(-)
meta/classes/image.bbclass +0 -13
@@ -171,10 +171,6 @@ python () { d.setVar('IMAGE_FEATURES', ' '.join(sorted(list(remain_features)))) check_image_features(d) - initramfs_image = d.getVar('INITRAMFS_IMAGE') or "" - if initramfs_image != "": - d.appendVarFlag('do_build', 'depends', " %s:do_bundle_initramfs" % d.getVar('PN')) - d.appendVarFlag('do_bundle_initramfs', 'depends', " %s:do_image_complete" % initramfs_image) } IMAGE_CLASSES += "image_types"
@@ -613,15 +609,6 @@ 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 - # Prepare the root links to point to the /usr counterparts. create_merged_usr_symlinks() { root="$1"
Signature · 1 line
2.7.4