[PATCH v3] ARM: rpi: parse useful data from vc fdt
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Jun 17 01:55:25 PDT 2022
Hi,
On 17.06.22 09:08, Ahmad Fatoum wrote:
>> + pnum = xmalloc(sizeof(u32));
>> + *pnum = num;
>> + globalvar_add_simple_int("vc.boot_partition", pnum, "%u");
You could use setenv() with a format string instead, see Sascha's change to
the mailing list, this would simplify this chunk here.
--
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