uboot_helper: sort usage

This commit is contained in:
MilhouseVH 2019-08-13 18:09:05 +01:00
parent 5666d4825d
commit 0b3504f791

View File

@ -240,13 +240,13 @@ def usage(PROJECT=None, SOC=None, FILE=sys.stdout):
print('Projects:', file=FILE)
print('', file=FILE)
for project in devices:
for project in sorted(devices):
if PROJECT is None or PROJECT == project:
print(' %s:' % project, file=FILE)
for soc in devices[project]:
for soc in sorted(devices[project]):
if SOC is None or SOC == soc:
print(' %s:' % soc, file=FILE)
for board in devices[project][soc]:
for board in sorted(devices[project][soc]):
print(' %s' % board, file=FILE)
print('', file=FILE)
print('', file=FILE)