diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:34 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-29 11:49:35 -0600 |
commit | f8f8df6eb870b53e025aa447f8d40cd2ce2a77f6 (patch) | |
tree | 855c9fc502d44854dd969a1ea671088c09f089a9 /tools/binman/test/95_fmap_x86_section.dts | |
parent | 08723a7abbc7e28b22d18684faf5142fc6f155e8 (diff) |
binman: Correct fmap output on x86
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>
Diffstat (limited to 'tools/binman/test/95_fmap_x86_section.dts')
-rw-r--r-- | tools/binman/test/95_fmap_x86_section.dts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/binman/test/95_fmap_x86_section.dts b/tools/binman/test/95_fmap_x86_section.dts new file mode 100644 index 0000000000..4cfce45670 --- /dev/null +++ b/tools/binman/test/95_fmap_x86_section.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + end-at-4gb; + size = <0x100>; + u-boot { + }; + section { + pad-byte = <0x62>; + intel-mrc { + }; + fmap { + offset = <0x20>; + }; + }; + }; +}; |