summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-02-17 21:46:28 +1100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:37:17 +0000
commit3f49597225a58965124503ca5f3cc4011b04b3c0 (patch)
treed67ae80c5935bf31f80a00bc7fbf8d7439adcd7d
parentd66b3d8b4ec3d2121ce83adc49fd0ad995bb5a01 (diff)
downloadpoky-3f49597225a58965124503ca5f3cc4011b04b3c0.tar.gz
poky-3f49597225a58965124503ca5f3cc4011b04b3c0.tar.bz2
poky-3f49597225a58965124503ca5f3cc4011b04b3c0.zip
lib/oe/image.py: fix working directory
The working directory needs to be changed before the image creation commands instead of afterwards. (From OE-Core rev: 9d9bca8785911e8ae06d507bbfb99d6a811f072e) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index c15296f5c0..31193f28dd 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -176,8 +176,8 @@ class Image(object):
bb.data.update_data(localdata)
localdata.setVar('type', type)
- cmds.append("\t" + localdata.getVar("IMAGE_CMD", True))
cmds.append(localdata.expand("\tcd ${DEPLOY_DIR_IMAGE}"))
+ cmds.append("\t" + localdata.getVar("IMAGE_CMD", True))
if type in cimages:
for ctype in cimages[type]: