From: Jonathan Liu Date: Mon, 17 Feb 2014 10:46:28 +0000 (+1100) Subject: lib/oe/image.py: fix working directory X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~34454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d9bca8785911e8ae06d507bbfb99d6a811f072e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index c15296f5c0e..31193f28dde 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]: