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)
commitafd82187b549e3bebc2ae02dc2914f8a43418ec4
tree3676a07c35c376afc24c8bb0a27ad1b330dddc1b
parent6c58aa1e6167ab71d4d4121cd79372bf25d1792a
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