[PATCH 11/24] qconfig: Move checking directory to the top

Simon Glass sjg at chromium.org
Wed Jul 17 17:56:59 CEST 2024


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 at chromium.org>
---

 tools/qconfig.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/qconfig.py b/tools/qconfig.py
index 5d6e468d1d8..832e524c25c 100755
--- a/tools/qconfig.py
+++ b/tools/qconfig.py
@@ -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':
-- 
2.34.1



More information about the U-Boot mailing list