tools: use read-only mmap in fit_check_sign
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 14 May 2019 18:35:02 +0000 (19:35 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 18 May 2019 16:32:02 +0000 (12:32 -0400)
commit7d57485a8a3c45c254919f01337c14cc2856accd
treed153de42617f0bcfc783da793caa39487e26b39e
parent26992928e80a7f8d86267985b211a858094dc389
tools: use read-only mmap in fit_check_sign

Add an option to open files in read-only mode in mmap_fdt so
that fit_check_sign can be used to inspect files on read-only
filesystems.
For example, this is useful when a key is shipped in a read-only
rootfs or squashfs.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
tools/fit_check_sign.c
tools/fit_common.c
tools/fit_common.h
tools/fit_image.c
tools/fit_info.c