summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-18 19:21:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:18 +0000
commit657f1e44b12cd91913b8bf3a6108bf1c62592b83 (patch)
tree6e56983bac7d9c9ce641ac9ed70c8d62422cdaf6 /scripts/lib
parent349dbad11df9cb793543d22b38234d38cb5a3ea3 (diff)
downloadpoky-657f1e44b12cd91913b8bf3a6108bf1c62592b83.tar.gz
wic: fixed test_iso_image test case
Fixed isoimage-isohybrid plulgin and correspondent wic tet case: - used wic-tools target when getting varlue of STAGING_LIBDIR variable - ensured that image is built with efi and hddimg enabled (From OE-Core rev: 5878484da64c38c7fde45bb06d76e22e608eb022) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index 15fd858d22..a8a5dc0a59 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -336,15 +336,12 @@ class IsoImagePlugin(SourcePlugin):
336 336
337 if not os.path.isfile("%s/EFI/BOOT/%s" \ 337 if not os.path.isfile("%s/EFI/BOOT/%s" \
338 % (bootimg_dir, grub_image)): 338 % (bootimg_dir, grub_image)):
339 grub_path = get_bitbake_var("STAGING_LIBDIR") 339 grub_path = get_bitbake_var("STAGING_LIBDIR", "wic-tools")
340 if not grub_path: 340 if not grub_path:
341 msger.error("Couldn't find STAGING_LIBDIR, exiting.\n") 341 msger.error("Couldn't find STAGING_LIBDIR, exiting.\n")
342 342
343 grub_core = "%s/grub/%s" % (grub_path, grub_target) 343 grub_core = "%s/grub/%s" % (grub_path, grub_target)
344 if not os.path.exists(grub_core): 344 if not os.path.exists(grub_core):
345 msger.info("Building grub-efi...\n")
346 exec_cmd("bitbake grub-efi")
347 if not os.path.exists(grub_core):
348 msger.error("Please build grub-efi first\n") 345 msger.error("Please build grub-efi first\n")
349 346
350 grub_cmd = "grub-mkimage -p '/EFI/BOOT' " 347 grub_cmd = "grub-mkimage -p '/EFI/BOOT' "