[bitbake-devel] [PATCH] bitbake: hob: create console log directory before writing

Paul Eggleton paul.eggleton at linux.intel.com
Tue Aug 21 15:07:37 UTC 2012

The default value of BB_CONSOLELOG in OE-Core now points to a directory
that might not exist prior to the first build, so ensure it is created

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
 bitbake/lib/bb/ui/crumbs/builder.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index cb2338e..611024a 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -1312,6 +1312,7 @@ class Builder(gtk.Window):
     def do_log(self, consolelogfile = None):
         if consolelogfile:
+            bb.utils.mkdirhier(os.path.dirname(consolelogfile))
             if self.consolelog:
                 self.consolelog = None

More information about the bitbake-devel mailing list