summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2016-09-16 11:06:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-20 15:11:08 +0100
commit1a8e50e153d94f9d4b76199e3bcf56220f0a419f (patch)
tree809b8cb3670372bd359f7d26a548f7dcff5eb4bd /meta
parentdbb76e297bf2a2301028c56f76832d1cd11b7efa (diff)
downloadpoky-1a8e50e153d94f9d4b76199e3bcf56220f0a419f.tar.gz
qemuboot.bbclass: don't fail on very first build
During the very first build, the DEPLOY_DIR_IMAGE directory might not have been created yet, causing the creation of the qemuboot.conf config file to fail. This is because write_qemuboot_conf() runs at rootfs creation time, i.e. before deploy. So let's create the directory if necessary before trying to write the config file. (From OE-Core rev: ee4697350a553a36ca17b9376911e56eee43a465) Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/qemuboot.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 802eb59f71..97a235772d 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -72,6 +72,7 @@ python write_qemuboot_conf() {
72 kernel = os.readlink(kernel_link) 72 kernel = os.readlink(kernel_link)
73 cf.set('config_bsp', 'QB_DEFAULT_KERNEL', kernel) 73 cf.set('config_bsp', 'QB_DEFAULT_KERNEL', kernel)
74 74
75 bb.utils.mkdirhier(os.path.dirname(qemuboot))
75 with open(qemuboot, 'w') as f: 76 with open(qemuboot, 'w') as f:
76 cf.write(f) 77 cf.write(f)
77 78