]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkenvimage: Use mmap() when reading from a regular file
authorDavid Wagner <david.wagner@free-electrons.com>
Fri, 13 Jan 2012 13:27:38 +0000 (13:27 +0000)
committerAnatolij Gustschin <agust@denx.de>
Tue, 27 Mar 2012 08:09:52 +0000 (10:09 +0200)
commit6ee39f8055680654f9cc97b98dcce9588f1ab71e
tree52823cc1128d31ad5d8d8ad8d0c72b7f7d496185
parent48995b5a96c99ba6243906ecab733e4269fbafe5
mkenvimage: Use mmap() when reading from a regular file

Fall back to read() if it fails.

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
tools/mkenvimage.c