summaryrefslogtreecommitdiffstats
path: root/documentation/sdk-manual
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-08-13 19:02:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 09:45:02 +0100
commitbeb93fff65c1aa677d341c4531bf15ce46f04a69 (patch)
treeb2edf7f9f649868a44d4806f39574d3afa836630 /documentation/sdk-manual
parent956278f4ec998ea665fc9ebe45a188bded919179 (diff)
downloadpoky-beb93fff65c1aa677d341c4531bf15ce46f04a69.tar.gz
bitbake: utils/md5_file: don't iterate line-by-line
Opening a file in binary mode and iterating it seems like the simple solution but will still break on newlines, which for binary files isn't really useful as the size of the chunks could be huge or tiny. Instead, let's be a bit more clever: we'll be MD5ing lots of files, but we don't want to fill up memory: use mmap() to open the file and read the file in 8k blocks. (Bitbake rev: a0ac8d67f1471a0c611d691b856fede67efb53f6) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/sdk-manual')
0 files changed, 0 insertions, 0 deletions