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:06:02 +0100 |
commit | f019bb933f8016d33937d755887700f9a446408e (patch) | |
tree | c3d827bb3679492ca73f6086ee0e57cabf684b38 /meta/classes | |
parent | f755bab79246e129e60b71f20ea16f36393f40b2 (diff) | |
download | poky-f019bb933f8016d33937d755887700f9a446408e.tar.gz |
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]
(From OE-Core rev: c39b072fa7e96f385da338a727c67e607308d637)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 () { | |||
196 | 196 | ||
197 | cfgfile.close() | 197 | cfgfile.close() |
198 | } | 198 | } |
199 | build_syslinux_cfg[dirs] = "${S}" | ||