From: Ed Bartosh Date: Thu, 2 Feb 2017 13:32:57 +0000 (+0200) Subject: wic: engine: create output dir X-Git-Tag: uninative-1.5~454 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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,