mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
f16d67a2ff
To make updating nodes and node properties easier, this change restructures the internals of the Fdt struct. The single binary blob that made up the contents of the FDT binary is replaced with with a tree structure of `FdtNodes`. This change allows adding new nodes and properties nested inside an existing node structure. With prevous implementation which kept FDT data stored in its binary form, inserting nodes and properties would require a lot of byte shifts and lookups. These changes will make applying FDT overlays much easier. The API is also simplified, writing properties after adding subnodes is no longer an error, and the concept of "opening" and "closing" FDT nodes is no longer used. Bug: b/296796644 Test: cd cros_fdt && cargo test Change-Id: I1ad90771c0a4a0bb29f0322773d55c82d4cd5575 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4916796 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Jakob Vukalović <jakobvukalovic@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |