mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 00:50:43 +09:00
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>
This commit is contained in:
parent
ff8725bbe0
commit
4b430c983a
@ -905,10 +905,10 @@ def main():
|
|||||||
|
|
||||||
config_attrs = parse_recipe(args[0])
|
config_attrs = parse_recipe(args[0])
|
||||||
|
|
||||||
update_cross_compile()
|
|
||||||
|
|
||||||
check_top_directory()
|
check_top_directory()
|
||||||
|
|
||||||
|
update_cross_compile()
|
||||||
|
|
||||||
if not options.cleanup_headers_only:
|
if not options.cleanup_headers_only:
|
||||||
move_config(config_attrs, options)
|
move_config(config_attrs, options)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user