summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/source/isoimage-isohybrid.py')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 74d6f14519..24299c1ece 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -71,8 +71,11 @@ class IsoImagePlugin(SourcePlugin):
71 syslinux_conf += "LABEL boot\n" 71 syslinux_conf += "LABEL boot\n"
72 72
73 kernel = get_bitbake_var("KERNEL_IMAGETYPE") 73 kernel = get_bitbake_var("KERNEL_IMAGETYPE")
74 if not kernel: 74 if get_bitbake_var("INITRAMFS_IMAGE_BUNDLE") == "1":
75 kernel = "bzImage" 75 if get_bitbake_var("INITRAMFS_IMAGE"):
76 kernel = "%s-%s.bin" % \
77 (get_bitbake_var("KERNEL_IMAGETYPE"), get_bitbake_var("INITRAMFS_LINK_NAME"))
78
76 syslinux_conf += "KERNEL /" + kernel + "\n" 79 syslinux_conf += "KERNEL /" + kernel + "\n"
77 syslinux_conf += "APPEND initrd=/initrd LABEL=boot %s\n" \ 80 syslinux_conf += "APPEND initrd=/initrd LABEL=boot %s\n" \
78 % bootloader.append 81 % bootloader.append
@@ -117,8 +120,10 @@ class IsoImagePlugin(SourcePlugin):
117 grubefi_conf += "menuentry 'boot'{\n" 120 grubefi_conf += "menuentry 'boot'{\n"
118 121
119 kernel = get_bitbake_var("KERNEL_IMAGETYPE") 122 kernel = get_bitbake_var("KERNEL_IMAGETYPE")
120 if not kernel: 123 if get_bitbake_var("INITRAMFS_IMAGE_BUNDLE") == "1":
121 kernel = "bzImage" 124 if get_bitbake_var("INITRAMFS_IMAGE"):
125 kernel = "%s-%s.bin" % \
126 (get_bitbake_var("KERNEL_IMAGETYPE"), get_bitbake_var("INITRAMFS_LINK_NAME"))
122 127
123 grubefi_conf += "linux /%s rootwait %s\n" \ 128 grubefi_conf += "linux /%s rootwait %s\n" \
124 % (kernel, bootloader.append) 129 % (kernel, bootloader.append)
@@ -273,8 +278,10 @@ class IsoImagePlugin(SourcePlugin):
273 os.remove("%s/initrd.cpio.gz" % cr_workdir) 278 os.remove("%s/initrd.cpio.gz" % cr_workdir)
274 279
275 kernel = get_bitbake_var("KERNEL_IMAGETYPE") 280 kernel = get_bitbake_var("KERNEL_IMAGETYPE")
276 if not kernel: 281 if get_bitbake_var("INITRAMFS_IMAGE_BUNDLE") == "1":
277 kernel = "bzImage" 282 if get_bitbake_var("INITRAMFS_IMAGE"):
283 kernel = "%s-%s.bin" % \
284 (get_bitbake_var("KERNEL_IMAGETYPE"), get_bitbake_var("INITRAMFS_LINK_NAME"))
278 285
279 install_cmd = "install -m 0644 %s/%s %s/%s" % \ 286 install_cmd = "install -m 0644 %s/%s %s/%s" % \
280 (kernel_dir, kernel, isodir, kernel) 287 (kernel_dir, kernel, isodir, kernel)