]> git.baikalelectronics.ru Git - uboot.git/commit
tools: imagetool: Skip autodetection of gpimage type
authorPali Rohár <pali@kernel.org>
Sun, 29 Jan 2023 16:45:55 +0000 (17:45 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 19:35:14 +0000 (14:35 -0500)
commit5351f431367f22ede9cbd808835c1b19c9f644c6
tree3676a07c35c376afc24c8bb0a27ad1b330dddc1b
parentc6e3173c62b91a95eacf0c34702b996e521f2f94
tools: imagetool: Skip autodetection of gpimage type

gpimage type requires only that two first 32-bit words of data file are
non-zero. So basically every random data file can be guessed and verified
as gpimage. So completely skip gpimage type from image autodetection code
to prevent lot of false positive results. Data file with gpimage type can
be still verified and parsed by explicitly specifying -T gpimage.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/imagetool.c