summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-02 15:32:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-02 17:37:36 +0000
commite52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14 (patch)
treee9674c5ddf90786089144b052229cd4fc2ebbf44 /scripts
parent04624464690da71b3ec904a48d5caa8087ca6381 (diff)
downloadopenembedded-core-e52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14.tar.gz
openembedded-core-e52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14.tar.bz2
openembedded-core-e52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14.zip
wic: engine: create output dir
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/engine.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 592ef77bba..7fb6f1317b 100644
--- a/scripts/lib/wic/engine.py
+++ b/scripts/lib/wic/engine.py
@@ -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,