]> code.ossystems Code Review - openembedded-core.git/commit
wic/bootimg-pcbios.py: checking the existance of syslinux
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 13 Oct 2014 10:46:34 +0000 (18:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 18 Oct 2014 14:12:55 +0000 (16:12 +0200)
commitc2d4364d9fbbda64598f0a3eb0b0890932bb7742
tree66145f31f16b4e0321accb0689faf24425704203
parentfcbd1b19383daf5e160a864df1418130da01be28
wic/bootimg-pcbios.py: checking the existance of syslinux

While syslinux not existed in $bootimg_dir, there was a error:

$ wic create directdisk -e core-image-minimal
...
|Creating image(s)...
|Error: exec_cmd: install -m 444 /home/jiahongxu/yocto/
build-20141010-yocto/tmp/deploy/images/qemux86-64/syslinux/
ldlinux.sys /var/tmp/wic/build/hdd/boot/ldlinux.sys
returned '1' instead of 0
...

Add checking for the existance of syslinux to fix this issue.
If syslinux didn't exist in anywhere, prompt user to build it.

[YOCTO #6826]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/plugins/source/bootimg-pcbios.py