[PATCH v4 4/5] env: Allow environment files to use the C preprocessor

Wolfgang Denk wd at denx.de
Mon Sep 20 14:35:17 CEST 2021


Dear Simon,

In message <20210919125937.v4.4.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe at changeid> you wrote:
>
> +To add additional text to a variable you can use var+=value. This text is
> +merged into the variable during the make process and made available as a
> +single value to U-Boot.

Explained after use.  Move documentation to previous patch?

> +		# Deal with +=
> +		if (match(var, "(.*)[+]$", var_arr)) {
> +			var = var_arr[1]
> +			env = vars[var] env
> +		}


Hm...  this is (so far) a legal command:

	=> setenv foobar+ foo+=bar


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Summit meetings tend to be like panda matings. The expectations  are
always high, and the results usually disappointing."   - Robert Orben


More information about the U-Boot mailing list