]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qconfig: Sort the boards by name when finding
authorSimon Glass <sjg@chromium.org>
Thu, 18 Jul 2024 09:11:24 +0000 (10:11 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2024 14:42:18 +0000 (08:42 -0600)
There is no particular ordering of the board list at present, since it
is generated by a multi-threaded process. Sort them by name to make it
easier to see if a particular board is present.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/qconfig.py

index 71fe6fff29c464f90f366705d4dedb4b626b1d86..241bd9efe336d6c9c9f6346570315196470dbab6 100755 (executable)
@@ -1142,7 +1142,7 @@ def do_find_config(config_list):
             if has_cfg == want:
                 out.add(defc)
     print(f'{len(out)} matches')
-    print(' '.join(item.split('_defconfig')[0] for item in out))
+    print(' '.join(item.split('_defconfig')[0] for item in sorted(list(out))))
     return 0