diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-08-19 17:46:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-20 16:05:28 +0100 |
commit | c39b072fa7e96f385da338a727c67e607308d637 (patch) | |
tree | 1e6c4ddfe2b159f7b37287cc87a689bece2957be | |
parent | 199cef0e8a50b20d0ee6fefd1d4cf3372eba7728 (diff) | |
download | openembedded-core-c39b072fa7e96f385da338a727c67e607308d637.tar.gz openembedded-core-c39b072fa7e96f385da338a727c67e607308d637.tar.bz2 openembedded-core-c39b072fa7e96f385da338a727c67e607308d637.zip |
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>
-rw-r--r-- | meta/classes/syslinux.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index fa3e3ec8a4..35d9eed00c 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass @@ -196,3 +196,4 @@ python build_syslinux_cfg () { cfgfile.close() } +build_syslinux_cfg[dirs] = "${S}" |