diff options
author | Luck Hoang <huyht1205@gmail.com> | 2017-02-20 16:37:58 +0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-23 12:49:49 -0800 |
commit | 1d133ec021a15b0e803850d8e7b442fa7b47ac7e (patch) | |
tree | a5591c85b12d3823365d6d1e9c7705d5ccf0c0e2 /scripts | |
parent | 1aed4140bfe51d8674951393aa6f4ce062563026 (diff) | |
download | poky-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')
-rw-r--r-- | scripts/lib/devtool/upgrade.py | 4 |
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 | |||
27 | import scriptutils | 27 | import scriptutils |
28 | import errno | 28 | import errno |
29 | import bb | 29 | import bb |
30 | |||
31 | devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib' | ||
32 | sys.path = sys.path + [devtool_path] | ||
33 | |||
30 | import oe.recipeutils | 34 | import oe.recipeutils |
31 | from devtool import standard | 35 | from devtool import standard |
32 | from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build | 36 | from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build |