summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMihaly Varga <mihaly.varga@ni.com>2016-02-03 12:35:06 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-04 23:35:05 +0000
commitfd5749832960ad3b85697c2878490d6f008982a3 (patch)
treede1e5807cf4c4c18c671b8a3741b6a29a4143cde /scripts
parentcfe08b474ef46dccba4ed09a998c6f33426f1b3d (diff)
downloadopenembedded-core-fd5749832960ad3b85697c2878490d6f008982a3.tar.gz
openembedded-core-fd5749832960ad3b85697c2878490d6f008982a3.tar.bz2
openembedded-core-fd5749832960ad3b85697c2878490d6f008982a3.zip
wic: isoimage-isohybrid: check for syslinux-native
.iso image creation fails if during the image creation syslinux is baked and syslinux-native is not. Added new check to verify if both syslinux and syslinux-native are baked and bake them if these are not installed. Signed-off-by: Mihaly Varga <mihaly.varga@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/isoimage-isohybrid.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
index c1e2a5dff1..62385a223d 100644
--- a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
+++ b/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
@@ -208,11 +208,14 @@ class IsoImagePlugin(SourcePlugin):
if not os.path.exists("%s/syslinux" % syslinux_dir):
msger.info("Building syslinux...\n")
exec_cmd("bitbake syslinux")
- msger.info("Building syslinux-native...\n")
- exec_cmd("bitbake syslinux-native")
if not os.path.exists("%s/syslinux" % syslinux_dir):
msger.error("Please build syslinux first\n")
+ # Make sure syslinux is available in native sysroot
+ if not os.path.exists("%s/usr/bin/syslinux" % native_sysroot):
+ msger.info("Building syslinux-native...\n")
+ exec_cmd("bitbake syslinux-native")
+
#Make sure mkisofs is available in native sysroot
if not os.path.isfile("%s/usr/bin/mkisofs" % native_sysroot):
msger.info("Building cdrtools-native...\n")