crosvm/cros_fdt/src
Jakob Vukalovic 3b29c72913 cros_fdt: Preserve FDT node/prop insertion order
Due to the use of BTreeMap for node and property storage, nodes and
properties are iterated over and written in alphabetical order.
This change replaces BTreeMap with IndexMap which preserves original
insertion order.

Bug: 331402446
Test: cd cros_fdt && cargo test
Change-Id: I10fc74a21bcfbdc71bdc46d61d850809e35773f3
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5401894
Reviewed-by: Steven Moreland <smoreland@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Jakob Vukalović <jakobvukalovic@google.com>
2024-03-28 10:46:22 +00:00
..
fdt.rs cros_fdt: Preserve FDT node/prop insertion order 2024-03-28 10:46:22 +00:00
lib.rs cros_fdt: Implement overlay filtering 2023-11-10 09:38:05 +00:00
overlay.rs cros_fdt: Do not apply children of filtered nodes 2024-01-22 10:37:57 +00:00
path.rs cros_fdt: Implement overlay filtering 2023-11-10 09:38:05 +00:00
propval.rs cros_fdt: Implement FdtNode properties API 2023-11-02 16:44:15 +00:00