* [PATCH] syslinux.bbclass: ensure creation of output directory
@ 2016-08-19 14:46 Ed Bartosh
0 siblings, 0 replies; only message in thread
From: Ed Bartosh @ 2016-08-19 14:46 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/classes/syslinux.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index fa3e3ec..35d9eed 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}"
--
2.6.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-19 14:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-19 14:46 [PATCH] syslinux.bbclass: ensure creation of output directory Ed Bartosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox