From c39b072fa7e96f385da338a727c67e607308d637 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 19 Aug 2016 17:46:39 +0300 Subject: 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 ../-/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 Signed-off-by: Richard Purdie --- meta/classes/syslinux.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes') diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index fa3e3ec8a4f..35d9eed00c6 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}" -- cgit 1.2.3-korg