]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/oe/image.py: fix working directory
authorJonathan Liu <net147@gmail.com>
Mon, 17 Feb 2014 10:46:28 +0000 (21:46 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Feb 2014 15:37:13 +0000 (15:37 +0000)
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>
meta/lib/oe/image.py

index c15296f5c0e738d5f1834bb611a58ea278838d95..31193f28dde822687b412cdbfea4454a99ee16f3 100644 (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]: