Skip to contentSkip to conversation

syslinux.bbclass: ensure creation of output directory

PATCH New Ed Bartosh 1 participant 1 message Aug 19, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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]

---
 meta/classes/syslinux.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/syslinux.bbclass +1 -0
index fa3e3ec..35d9eed 100644
@@ -196,3 +196,4 @@ python build_syslinux_cfg () {
 
     cfgfile.close()
 }
+build_syslinux_cfg[dirs] = "${S}"
Signature · 1 line
2.6.6