[PATCH v2 3/4] of: add generic of_fixup_machine_compatible()
Oleksij Rempel
o.rempel at pengutronix.de
Wed Apr 27 02:51:26 PDT 2022
On Wed, Apr 27, 2022 at 11:46:20AM +0200, Ahmad Fatoum wrote:
> Hi,
>
> On 27.04.22 11:37, Oleksij Rempel wrote:
> >
> > + if (IS_ENABLED(CONFIG_MACHINE_FIXUP)) {
> > + const char *compat;
> > +
> > + compat = getenv("global.of_machine_compatible");
> > + if (compat)
> > + of_fixup_machine_compatible(root, compat);
>
> That's not what I had in mind. I meant for the variable to affect bootspec
> use, i.e. fixup barebox device tree. This here just adds an extra compatible
> to the kernel device tree.
This is what is needed for my use case/customer. As soon as other use
case will be needed, we can extend it.
Regards,
Oleksij
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list