summaryrefslogtreecommitdiffstats
path: root/scripts/lib
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:45 +0000
commit81ef850314fe471e3b290bbeed724564dee48044 (patch)
tree075f308de21fb53d108d1d83b127d44ce5a4c5a2 /scripts/lib
parentf39943aa690776ce2de7a0d3e2965c4c8f5d2a51 (diff)
downloadpoky-81ef850314fe471e3b290bbeed724564dee48044.tar.gz
wic: engine: create output dir
Make sure output directory exists before creating an image. Create it if it doesn't exist. (From OE-Core rev: e52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-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,
187 if debug: 187 if debug:
188 msger.set_loglevel('debug') 188 msger.set_loglevel('debug')
189 189
190 if not os.path.exists(image_output_dir):
191 os.makedirs(image_output_dir)
192
190 crobj = creator.Creator() 193 crobj = creator.Creator()
191 194
192 cmdline = ["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir, 195 cmdline = ["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir,