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:29:11 -0800 |
commit | 5f140359f859fea9cfe8c8d9c9584bceec875adb (patch) | |
tree | 3cfc3489c7b2a4d0b19e76758af900d7e8b018e2 | |
parent | a851f57de63fe527e04f2296245e9720c40f9c2e (diff) | |
download | openembedded-core-5f140359f859fea9cfe8c8d9c9584bceec875adb.tar.gz openembedded-core-5f140359f859fea9cfe8c8d9c9584bceec875adb.tar.bz2 openembedded-core-5f140359f859fea9cfe8c8d9c9584bceec875adb.zip |
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.
Signed-off-by: Luck Hoang <huyht1205@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 import scriptutils import errno import bb + +devtool_path = os.path.dirname(os.path.realpath(__file__)) + '/../../../meta/lib' +sys.path = sys.path + [devtool_path] + import oe.recipeutils from devtool import standard from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_recipe, use_external_build |