Re: [PATCH v3 08/15] flattree: Handle unknown tags

From: David Gibson

Date: Wed Sep 16 2026 - 05:13:46 EST


On Wed, Sep 16, 2026 at 08:31:30AM +0200, Herve Codina wrote:
> Hi David,
>
> On Tue, 15 Sep 2026 21:52:24 +1000
> David Gibson <david@xxxxxxxxxxxxxxxxxxxxx> wrote:
[snip]
> > > This avoid the need for 2 dtbs generated by treegen and also avoid to compare
> > > binary files which are difficult to analyze when the comparison detects a problem
> > > due to something broken by some modifications.
> >
> > We _want_ to understand and test things at the binary byte level.
> > Debugging differences is a little trickier, but it's really not that
> > bad - -Odts or fdtdump or dtdiff can be used if/when there's a test
> > failure. I really think doing the comparison in binary is preferable
> > - that's the level at which the behaviour is specified and should be
> > tested.
>
> Right, will see what I can do. Probably generating using two specific dtbs
> as suggested in your first proposal.
>
> Worth noting that each time a dtb will change due to, for instance, a new
> dtb version (or any other header field update), this test will need to be
> updated. DTC will generate the dtb with new headers value.

If you use the default call for the header in treegen, which always
uses the latest version, then it should be fine.

--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature