]> code.ossystems Code Review - openembedded-core.git/commit
qemuboot.bbclass: don't fail on very first build
authorAndré Draszik <git@andred.net>
Fri, 16 Sep 2016 10:06:29 +0000 (11:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Sep 2016 14:10:35 +0000 (15:10 +0100)
commitee4697350a553a36ca17b9376911e56eee43a465
treee85bc0e97a0e8dc9959c6ab91e3312a4ffd5b3b5
parent449a0b21255d895e8620383ce76a9d7ea41b5cc6
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>
meta/classes/qemuboot.bbclass