diff options
author | André Draszik <git@andred.net> | 2016-09-16 11:06:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-20 15:10:35 +0100 |
commit | ee4697350a553a36ca17b9376911e56eee43a465 (patch) | |
tree | e85bc0e97a0e8dc9959c6ab91e3312a4ffd5b3b5 /meta/classes | |
parent | 449a0b21255d895e8620383ce76a9d7ea41b5cc6 (diff) | |
download | openembedded-core-ee4697350a553a36ca17b9376911e56eee43a465.tar.gz openembedded-core-ee4697350a553a36ca17b9376911e56eee43a465.tar.bz2 openembedded-core-ee4697350a553a36ca17b9376911e56eee43a465.zip |
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@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/qemuboot.bbclass | 1 |
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() { 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) |