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:
parent
d66b3d8b4e
commit
3f49597225
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue