[oe-commits] [openembedded-core] 02/17: qemuboot.bbclass: don't fail on very first build
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 20 14:11:33 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit ee4697350a553a36ca17b9376911e56eee43a465
Author: André Draszik <git at andred.net>
AuthorDate: Fri Sep 16 11:06:29 2016 +0100
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.
Signed-off-by: André Draszik <git at andred.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/qemuboot.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 802eb59..97a2357 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -72,6 +72,7 @@ python write_qemuboot_conf() {
kernel = os.readlink(kernel_link)
cf.set('config_bsp', 'QB_DEFAULT_KERNEL', kernel)
+ bb.utils.mkdirhier(os.path.dirname(qemuboot))
with open(qemuboot, 'w') as f:
cf.write(f)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list