]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: engine: create output dir
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 2 Feb 2017 13:32:57 +0000 (15:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Feb 2017 17:37:36 +0000 (17:37 +0000)
Make sure output directory exists before creating an image.
Create it if it doesn't exist.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/engine.py

index 592ef77bba09e14e4352764f93527a826afc3fcc..7fb6f1317b34e33dbc6c91baa53c7389febd7cab 100644 (file)
@@ -187,6 +187,9 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
     if debug:
         msger.set_loglevel('debug')
 
+    if not os.path.exists(image_output_dir):
+        os.makedirs(image_output_dir)
+
     crobj = creator.Creator()
 
     cmdline = ["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir,