diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 12 |
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" | |||
629 | do_package_write_rpm[noexec] = "1" | 633 | do_package_write_rpm[noexec] = "1" |
630 | 634 | ||
631 | addtask rootfs before do_build | 635 | addtask rootfs before do_build |
636 | # Allow the kernel to be repacked with the initramfs and boot image file as a single file | ||
637 | do_bundle_initramfs[depends] += "virtual/kernel:do_bundle_initramfs" | ||
638 | do_bundle_initramfs[nostamp] = "1" | ||
639 | do_bundle_initramfs[noexec] = "1" | ||
640 | do_bundle_initramfs () { | ||
641 | : | ||
642 | } | ||
643 | addtask bundle_initramfs after do_rootfs | ||