[oe-commits] Jonathan Liu : lib/oe/image.py: fix working directory

git at git.openembedded.org git at git.openembedded.org
Mon Feb 17 16:58:02 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 9d9bca8785911e8ae06d507bbfb99d6a811f072e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9d9bca8785911e8ae06d507bbfb99d6a811f072e

Author: Jonathan Liu <net147 at gmail.com>
Date:   Mon Feb 17 21:46:28 2014 +1100

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 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oe/image.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index c15296f..31193f2 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]:



More information about the Openembedded-commits mailing list