[OE-core] [PATCH 1/3] wic: engine: create output dir
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Feb 2 13:32:57 UTC 2017
Make sure output directory exists before creating an image.
Create it if it doesn't exist.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
scripts/lib/wic/engine.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 592ef77..7fb6f13 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,
--
2.1.4
More information about the Openembedded-core
mailing list