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>
This commit is contained in:
Jonathan Liu 2014-02-17 21:46:28 +11:00 committed by Richard Purdie
parent d66b3d8b4e
commit 3f49597225
1 changed files with 1 additions and 1 deletions

View File

@ -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]: