Re: [PATCH v2 03/10] tests: asm: Introduce treehdr_vers macro

From: Herve Codina

Date: Thu Jun 18 2026 - 15:55:57 EST


Hi David,

On Thu, 18 Jun 2026 20:15:10 +1000
David Gibson <david@xxxxxxxxxxxxxxxxxxxxx> wrote:

> On Thu, Apr 09, 2026 at 01:54:19PM +0200, Herve Codina wrote:
> > tree.S is used to generate custom dtbs. It uses the treehdr macro to
> > build the header part.
> >
> > The current definition of this macro doesn't allow to set custom
> > settings related to version fields.
> >
> > In order to easily generate some dtb with custom version values without
> > duplicating the full header computation, introduce the treehdr_vers
> > macro.
> >
> > The modification doesn't introduce any functional changes.
> >
> > Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>
>
> I just killed the not-very-portable trees.S in the main git tree, so
> this will need reworking for the new treegen.c system.

Killing trees.S has been a good idea.

Even if it implies more work on my side, I can only agree with this
decision.

Best regards,
Hervé