diff options
| author | Simon Glass <sjg@chromium.org> | 2019-07-08 13:18:56 -0600 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2019-07-24 12:53:46 -0700 |
| commit | e073d4e14ff76f545a71dc40fa324618ce80adcb (patch) | |
| tree | 203f4e7197ce2986f8fde0e55b423314096224e0 /tools/binman/test | |
| parent | 7c173ced645b9fff4d5b41849375275a8b63f04d (diff) | |
binman: Add support for fixed-offset files in CBFS
A feature of CBFS is that it allows files to be positioned at particular
offset (as with binman in general). This is useful to support
execute-in-place (XIP) code, since this may not be relocatable.
Add a new cbfs-offset property to control this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test')
| -rw-r--r-- | tools/binman/test/114_cbfs_offset.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/binman/test/114_cbfs_offset.dts b/tools/binman/test/114_cbfs_offset.dts new file mode 100644 index 0000000000..7aa9d9d4bf --- /dev/null +++ b/tools/binman/test/114_cbfs_offset.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-offset; + end-at-4gb; + size = <0x200>; + cbfs { + size = <0x200>; + offset = <0xfffffe00>; + u-boot { + cbfs-offset = <0x40>; + cbfs-type = "raw"; + }; + u-boot-dtb { + cbfs-offset = <0x140>; + cbfs-type = "raw"; + }; + }; + }; +}; |
