diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/image.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index f0843de928..52ac1e752c 100644 --- a/meta/lib/oe/image.py +++ b/meta/lib/oe/image.py | |||
@@ -341,8 +341,7 @@ class Image(ImageDepGraph): | |||
341 | 341 | ||
342 | stdir = self.d.getVar('STAGING_DIR_TARGET', True) | 342 | stdir = self.d.getVar('STAGING_DIR_TARGET', True) |
343 | outdir = os.path.join(stdir, 'imgdata') | 343 | outdir = os.path.join(stdir, 'imgdata') |
344 | if not os.path.exists(outdir): | 344 | bb.utils.mkdirhier(outdir) |
345 | os.makedirs(outdir) | ||
346 | basename = self.d.getVar('IMAGE_BASENAME', True) | 345 | basename = self.d.getVar('IMAGE_BASENAME', True) |
347 | with open(os.path.join(outdir, basename) + '.env', 'w') as envf: | 346 | with open(os.path.join(outdir, basename) + '.env', 'w') as envf: |
348 | for var in wicvars.split(): | 347 | for var in wicvars.split(): |