summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/qconfig.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qconfig.py b/tools/qconfig.py
index 5b85f9d22c3..930eb0e203d 100755
--- a/tools/qconfig.py
+++ b/tools/qconfig.py
@@ -871,6 +871,10 @@ def read_database():
value: set of boards using that option
"""
+ if not os.path.exists(CONFIG_DATABASE):
+ sys.exit(f"Error: database '{CONFIG_DATABASE}' not found. "
+ f"Did you forget to generate it first with the -b option?")
+
configs = {}
# key is defconfig name, value is dict of (CONFIG_xxx, value)
@@ -1510,7 +1514,7 @@ def parse_args():
cpu_count = 1
epilog = '''Move config options from headers to defconfig files. See
-doc/develop/moveconfig.rst for documentation.'''
+doc/develop/qconfig.rst for documentation.'''
parser = ArgumentParser(epilog=epilog)
# Add arguments here