[PATCH v3 0/2] livetree: Add only new data to fixup nodes instead of complete regeneration

Uwe Kleine-König <[email protected]>
Newsgroups org.kernel.vger.devicetree-compiler
Message-ID <[email protected]>
Hello,

here comes v3 of my effort to fix the fallout of commit 915daadbb62d
("Start with empty __local_fixups__ and __fixups__ nodes") before trying
to restore phandle information from __fixups__ and __local_fixups__ when
compiling from dtb to dts.

Changes since v2[1]:

 - Don't add data to malformed properties
 - Make check for for property being a string in
   append_unique_str_to_property() more robust.

I didn't add a specific error message pointing out malformed
properties because it's hard to only emit the first problem and also to
only emit each property once. (Well, it's not really hard, but needs
considerable restructuring of the affected functions that makes them
less intuitive.)

Best regards
Uwe

[1] https://lore.kernel.org/devicetree-compiler/[email protected]

Uwe Kleine-König (2):
  livetree: Simplify append_to_property()
  livetree: Add only new data to fixup nodes instead of complete
    regeneration

 livetree.c              | 137 ++++++++++++++++++++++++++++------------
 tests/retain-fixups.dts |  29 +++++++++
 tests/run_tests.sh      |   5 ++
 3 files changed, 131 insertions(+), 40 deletions(-)
 create mode 100644 tests/retain-fixups.dts


base-commit: 84d9dd2fcbc865a35d7f04d9b465b05ef286d281
-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.