summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 84f638c099..4a0946c8e3 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -130,6 +130,10 @@ python () {
130 d.setVar('MULTILIB_VENDORS', ml_vendor_list) 130 d.setVar('MULTILIB_VENDORS', ml_vendor_list)
131 131
132 check_image_features(d) 132 check_image_features(d)
133 initramfs_image = d.getVar('INITRAMFS_IMAGE', True) or ""
134 if initramfs_image != "":
135 d.appendVarFlag('do_build', 'depends', " %s:do_bundle_initramfs" % d.getVar('PN', True))
136 d.appendVarFlag('do_bundle_initramfs', 'depends', " %s:do_rootfs" % initramfs_image)
133} 137}
134 138
135# 139#
@@ -629,3 +633,11 @@ do_package_write_deb[noexec] = "1"
629do_package_write_rpm[noexec] = "1" 633do_package_write_rpm[noexec] = "1"
630 634
631addtask rootfs before do_build 635addtask rootfs before do_build
636# Allow the kernel to be repacked with the initramfs and boot image file as a single file
637do_bundle_initramfs[depends] += "virtual/kernel:do_bundle_initramfs"
638do_bundle_initramfs[nostamp] = "1"
639do_bundle_initramfs[noexec] = "1"
640do_bundle_initramfs () {
641 :
642}
643addtask bundle_initramfs after do_rootfs