[gnome-continuous-yocto/gnomeostree-3.28-rocko: 2525/8267] qemuboot.bbclass: don't fail on very first build
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 2525/8267] qemuboot.bbclass: don't fail on very first build
- Date: Sat, 16 Dec 2017 23:21:09 +0000 (UTC)
commit 1a8e50e153d94f9d4b76199e3bcf56220f0a419f
Author: André Draszik <git andred net>
Date: 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.
(From OE-Core rev: ee4697350a553a36ca17b9376911e56eee43a465)
Signed-off-by: André Draszik <git andred net>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
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 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]