qconfig: Move checking directory to the top
Move this check to the top, so it happens always. The tool should be run from the U-Boot source directory. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1528,6 +1528,9 @@ def main():
|
|||||||
args.scan_source, args.test)):
|
args.scan_source, args.test)):
|
||||||
parser.print_usage()
|
parser.print_usage()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
check_top_directory()
|
||||||
|
|
||||||
if args.test:
|
if args.test:
|
||||||
sys.argv = [sys.argv[0]]
|
sys.argv = [sys.argv[0]]
|
||||||
fail, _ = doctest.testmod()
|
fail, _ = doctest.testmod()
|
||||||
@@ -1542,8 +1545,6 @@ def main():
|
|||||||
# prefix the option name with CONFIG_ if missing
|
# prefix the option name with CONFIG_ if missing
|
||||||
configs = [prefix_config(cfg) for cfg in args.configs]
|
configs = [prefix_config(cfg) for cfg in args.configs]
|
||||||
|
|
||||||
check_top_directory()
|
|
||||||
|
|
||||||
if args.imply:
|
if args.imply:
|
||||||
imply_flags = 0
|
imply_flags = 0
|
||||||
if args.imply_flags == 'all':
|
if args.imply_flags == 'all':
|
||||||
|
Reference in New Issue
Block a user