diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-05-19 15:51:52 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-13 07:46:28 +0900 |
commit | 4b430c983a57146633f1b9a9ca5ed7289215763f (patch) | |
tree | fd79c602dd6d68722dcf5200590be5b3251cbda4 /tools/moveconfig.py | |
parent | ff8725bbe06b3b890beb2044c02ef332c8d028b4 (diff) | |
download | u-boot-4b430c983a57146633f1b9a9ca5ed7289215763f.zip u-boot-4b430c983a57146633f1b9a9ca5ed7289215763f.tar.gz u-boot-4b430c983a57146633f1b9a9ca5ed7289215763f.tar.bz2 |
tools: moveconfig: check directory location before compilers
We must ensure this tool is run from the top of source directory
before calling update_cross_compile(). Otherwise, the following
exception is thrown:
Traceback (most recent call last):
File "./moveconfig.py", line 918, in <module>
main()
File "./moveconfig.py", line 908, in main
update_cross_compile()
File "./moveconfig.py", line 292, in update_cross_compile
for arch in os.listdir('arch'):
OSError: [Errno 2] No such file or directory: 'arch'
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools/moveconfig.py')
-rwxr-xr-x | tools/moveconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 1332bd2..ce8245a 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -905,10 +905,10 @@ def main(): config_attrs = parse_recipe(args[0]) - update_cross_compile() - check_top_directory() + update_cross_compile() + if not options.cleanup_headers_only: move_config(config_attrs, options) |