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>
args.scan_source, args.test)):
parser.print_usage()
sys.exit(1)
+
+ check_top_directory()
+
if args.test:
sys.argv = [sys.argv[0]]
fail, _ = doctest.testmod()
# prefix the option name with CONFIG_ if missing
configs = [prefix_config(cfg) for cfg in args.configs]
- check_top_directory()
-
if args.imply:
imply_flags = 0
if args.imply_flags == 'all':