summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/image.bbclass2
-rw-r--r--meta/classes/image_types.bbclass2
-rw-r--r--meta/lib/oeqa/selftest/wic.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 5fc7385d79..fb0cce35c5 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -342,7 +342,7 @@ python do_rootfs_wicenv () {
342 if not wicvars: 342 if not wicvars:
343 return 343 return
344 344
345 stdir = d.getVar('STAGING_DIR_TARGET') 345 stdir = d.getVar('STAGING_DIR')
346 outdir = os.path.join(stdir, 'imgdata') 346 outdir = os.path.join(stdir, 'imgdata')
347 bb.utils.mkdirhier(outdir) 347 bb.utils.mkdirhier(outdir)
348 basename = d.getVar('IMAGE_BASENAME') 348 basename = d.getVar('IMAGE_BASENAME')
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index bac7ff5d37..5b1746a68c 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -216,7 +216,7 @@ IMAGE_CMD_wic () {
216 bbfatal "No kickstart files from WKS_FILES were found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES appropriately." 216 bbfatal "No kickstart files from WKS_FILES were found: ${WKS_FILES}. Please set WKS_FILE or WKS_FILES appropriately."
217 fi 217 fi
218 218
219 BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR_TARGET}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" ${WIC_CREATE_EXTRA_ARGS} 219 BUILDDIR="${TOPDIR}" wic create "$wks" --vars "${STAGING_DIR}/imgdata/" -e "${IMAGE_BASENAME}" -o "$out/" ${WIC_CREATE_EXTRA_ARGS}
220 mv "$out/build/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic" 220 mv "$out/build/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic"
221 rm -rf "$out/" 221 rm -rf "$out/"
222} 222}
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 77f1bdcfa9..6a61ba6868 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -332,7 +332,7 @@ class Wic(oeSelfTest):
332 """Generate and obtain the path to <image>.env""" 332 """Generate and obtain the path to <image>.env"""
333 if image not in self.wicenv_cache: 333 if image not in self.wicenv_cache:
334 self.assertEqual(0, bitbake('%s -c do_rootfs_wicenv' % image).status) 334 self.assertEqual(0, bitbake('%s -c do_rootfs_wicenv' % image).status)
335 stdir = get_bb_var('STAGING_DIR_TARGET', image) 335 stdir = get_bb_var('STAGING_DIR', image)
336 self.wicenv_cache[image] = os.path.join(stdir, 'imgdata') 336 self.wicenv_cache[image] = os.path.join(stdir, 'imgdata')
337 return self.wicenv_cache[image] 337 return self.wicenv_cache[image]
338 338