[PATCH v2 04/10] globalvar: skip empty variables in globalvar_get_match()
Marco Felsch
m.felsch at pengutronix.de
Thu Oct 15 02:54:47 PDT 2026
On 26-10-15 11:18, Ahmad Fatoum wrote:
> globalvar_get_match() concatenates all matching variables with the
> separator, whether they have a value or not. As variables like
> global.linux.bootargs.base or global.linux.bootargs.dyn.* are registered
> unconditionally, but often left empty, the resulting kernel command line
> would contain runs of multiple spaces.
>
> Treat variables without a value as if they didn't exist at all.
>
> Assisted-by: Claude:fable-5
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch at pengutronix.de>
More information about the barebox
mailing list