diff options
author | rmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2016-05-09 12:53:39 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 18:53:18 +0200 |
commit | 06a3241c27c6550e3cba39c69035da8e984bf41a (patch) | |
tree | 11a892d54f84508e317b177c5d55d22156def57d /tools/mklibs | |
parent | 30edc32888829b4c7a4b0e2ce17512bd8778671c (diff) | |
download | master-31e0f0ae-06a3241c27c6550e3cba39c69035da8e984bf41a.tar.gz master-31e0f0ae-06a3241c27c6550e3cba39c69035da8e984bf41a.tar.bz2 master-31e0f0ae-06a3241c27c6550e3cba39c69035da8e984bf41a.zip |
mtd: seama: fix image data handling
1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation
Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'tools/mklibs')
0 files changed, 0 insertions, 0 deletions