]> git.baikalelectronics.ru Git - uboot.git/commit
mkimage: Skip adding non-existent IDs to a list
authorNaoki Hayama <naoki.hayama@lineo.co.jp>
Wed, 7 Oct 2020 02:21:55 +0000 (11:21 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2020 13:54:52 +0000 (09:54 -0400)
commitc0fc327b88326bdd391e128f9c83e775511a2366
treec15c1c92dc44279c3b3305bbfc933d0309b5326b
parent42cdf30bf11236c174219f8c7211f5507c19ee76
mkimage: Skip adding non-existent IDs to a list

In show_valid_options(), this patch introduces checking whether
a category has an entry ID. If not, adding it to a list for output
is skipped before calling qsort().
This patch will affect all kinds of image header categories
(-A, -C, -O and -T flags).

Signed-off-by: Naoki Hayama <naoki.hayama@lineo.co.jp>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/mkimage.c