diff options
author | Simon Glass <sjg@chromium.org> | 2022-09-06 20:27:32 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-29 22:43:43 -0400 |
commit | 0b58eaa89c4d7a4aea1f7f63ff4aca2c2f1d90c4 (patch) | |
tree | 2cfa68b6cbd711ec4ec34e92aa1320930e6a8fd4 /lib/efi_loader/efi_root_node.c | |
parent | 0d63213c1ed5246423c22cbe3c6798a09763a2b9 (diff) |
dm: core: Allow copying ofnode property data when writing
At present ofnode_write_prop() is inconsistent between livetree and
flattree, in that livetree requires the caller to ensure the property
value is stable (e.g. in rodata or allocated) but flattree does not, since
it makes a copy.
This makes the API call a bit painful to use, since the caller must do
different things depending on OF_LIVE.
Add a new 'copy' argument which tells the function to make a copy if
needed. Add some tests to cover this behaviour.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/efi_root_node.c')
0 files changed, 0 insertions, 0 deletions