[PATCH v2 3/4] of: add generic of_fixup_machine_compatible()

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Apr 27 02:46:20 PDT 2022


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.

Cheers,
Ahmad

-- 
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