]> code.ossystems Code Review - openembedded-core.git/commit
syslinux.bbclass: ensure creation of output directory
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 19 Aug 2016 14:46:39 +0000 (17:46 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Aug 2016 15:05:28 +0000 (16:05 +0100)
commitc39b072fa7e96f385da338a727c67e607308d637
tree1e6c4ddfe2b159f7b37287cc87a689bece2957be
parent199cef0e8a50b20d0ee6fefd1d4cf3372eba7728
syslinux.bbclass: ensure creation of output directory

build_syslinux_cfg function creates syslinux configuration file.
The code assumes that the output directory exists, which is not
always the case. For example rm_work task removes rootfs directory
structure and causes build_syslinux_cfg to fail with this error:
Unable to open ../<image>-<version>/syslinux_vm.cfg

Made build_syslinux_cfg depend on output directory to ensure that
directory is created before running the function.

[YOCTO #10159]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/syslinux.bbclass