qconfig: Allow searching for CONFIG values

Add basic support for searching for matching of non-matching values.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/20
This commit is contained in:
Simon Glass
2024-07-18 10:11:23 +01:00
parent 9366640449
commit 7ff80ece21
2 changed files with 25 additions and 4 deletions

View File

@@ -85,6 +85,20 @@ example, to find boards which enabled CONFIG_SCSI but not CONFIG_BLK::
3 matches
pg_wcom_seli8_defconfig highbank_defconfig pg_wcom_expu1_defconfig
It is also possible to search for particular values. For example, this finds all
boards with an empty string for `CONFIG_DEFAULT_FDT_FILE`::
./tools/qconfig.py -f DEFAULT_FDT_FILE=\"\"
1092 matches
...
This finds boards which have a value for SYS_MAXARGS other than 64::
./tools/qconfig.py -f ~SYS_MAXARGS=64
cfg CONFIG_SYS_MAXARGS
281 matches
...
Finding implied CONFIGs
-----------------------