]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qconfig: Move checking directory to the top
authorSimon Glass <sjg@chromium.org>
Wed, 17 Jul 2024 15:56:59 +0000 (16:56 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Jul 2024 14:01:06 +0000 (08:01 -0600)
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>
tools/qconfig.py

index 5d6e468d1d860b3b290918afc422a8a5a2d3eaa0..832e524c25c22cde6592249212e4eb7bb3742f60 100755 (executable)
@@ -1528,6 +1528,9 @@ def main():
                 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()
@@ -1542,8 +1545,6 @@ def main():
     # 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':