summaryrefslogtreecommitdiff
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:13 +0000
commit9d9bca8785911e8ae06d507bbfb99d6a811f072e (patch)
tree31b2e0dccf5662ef623edd0f90b830bbeda97d7d
parent704878ba025fda931be6accbb74cfdb14ffb55e9 (diff)
downloadopenembedded-core-9d9bca8785911e8ae06d507bbfb99d6a811f072e.tar.gz
openembedded-core-9d9bca8785911e8ae06d507bbfb99d6a811f072e.tar.bz2
openembedded-core-9d9bca8785911e8ae06d507bbfb99d6a811f072e.zip
lib/oe/image.py: fix working directory
The working directory needs to be changed before the image creation commands instead of afterwards. 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]: