summaryrefslogtreecommitdiff
path: root/tools/binman/fmap_util.py
Commit message (Collapse)AuthorAgeFilesLines
* patman: Update fmap code for Python 3Simon Glass2019-07-101-3/+9
| | | | | | | | This needs special care to ensure that the bytes type is used for binary data. Add conversion code to deal with strings and bytes correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
* binman: Correct fmap output on x86Simon Glass2018-09-291-1/+5
| | | | | | | | | | | | | Normally x86 platforms use the end-at-4gb option. This currently produces an FMAP with positions which have a large offset. The use of end-at-4gb is a useful convenience within binman, but we don't really want to export a map with these offsets. Fix this by subtracting the 'skip at start' parameter. Also put the code which convers names to fmap format, for clarity. Signed-off-by: Simon Glass <sjg@chromium.org>
* binman: Add support for flashrom FMAPSimon Glass2018-08-011-0/+109
Add an entry which can hold an FMAP region as used by flashrom, an open-source flashing tool used on Linux x86 machines. This provides a simplified non-hierarchical view of the entries in the image and has a signature at the start to allow flashrom to find it in the image. Signed-off-by: Simon Glass <sjg@chromium.org>