]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitc8484f8d3ca964ae898786878bad6bc1fda9bc78
treed153de42617f0bcfc783da793caa39487e26b39e
parent7ac3521ad89e7fc9fb093973a16c9204cd94c44e
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