[oe-commits] [openembedded-core] 29/29: qemuboot.bbclass: don't fail on very first build

git at git.openembedded.org git at git.openembedded.org
Mon Sep 19 08:12:23 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 76cd050adf60e5f2692306ac6a85193883044467
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