summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorLuck Hoang <huyht1205@gmail.com>2017-02-20 16:37:58 +0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-23 12:49:49 -0800
commit1d133ec021a15b0e803850d8e7b442fa7b47ac7e (patch)
treea5591c85b12d3823365d6d1e9c7705d5ccf0c0e2 /scripts/lib/devtool
parent1aed4140bfe51d8674951393aa6f4ce062563026 (diff)
downloadpoky-1d133ec021a15b0e803850d8e7b442fa7b47ac7e.tar.gz
devtool: upgrade: fix error of import recipeutils
upgrade.py imports oe.recipeutils in meta/lib/ but path to oe.recipeutils is not provided. This fails populate_sdk_ext. (From OE-Core rev: 5f140359f859fea9cfe8c8d9c9584bceec875adb) Signed-off-by: Luck Hoang <huyht1205@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/upgrade.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index c3343421c1..05fb9e5ed0 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -27,6 +27,10 @@ import argparse
27import scriptutils 27import scriptutils
28import errno 28import errno
29import bb 29import bb
30
31devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib'
32sys.path = sys.path + [devtool_path]
33
30import oe.recipeutils 34import oe.recipeutils
31from devtool import standard 35from devtool import standard
32from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build 36from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build