diff options
author | Jonathan Liu <net147@gmail.com> | 2014-02-17 21:46:28 +1100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-17 15:37:17 +0000 |
commit | 3f49597225a58965124503ca5f3cc4011b04b3c0 (patch) | |
tree | d67ae80c5935bf31f80a00bc7fbf8d7439adcd7d | |
parent | d66b3d8b4ec3d2121ce83adc49fd0ad995bb5a01 (diff) | |
download | poky-3f49597225a58965124503ca5f3cc4011b04b3c0.tar.gz |
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.py | 2 |
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): | |||
176 | bb.data.update_data(localdata) | 176 | bb.data.update_data(localdata) |
177 | localdata.setVar('type', type) | 177 | localdata.setVar('type', type) |
178 | 178 | ||
179 | cmds.append("\t" + localdata.getVar("IMAGE_CMD", True)) | ||
180 | cmds.append(localdata.expand("\tcd ${DEPLOY_DIR_IMAGE}")) | 179 | cmds.append(localdata.expand("\tcd ${DEPLOY_DIR_IMAGE}")) |
180 | cmds.append("\t" + localdata.getVar("IMAGE_CMD", True)) | ||
181 | 181 | ||
182 | if type in cimages: | 182 | if type in cimages: |
183 | for ctype in cimages[type]: | 183 | for ctype in cimages[type]: |