[PATCH 1/1] buildman: Improve [make-flags] section parser to allow quoted strings

Simon Glass sjg at chromium.org
Tue Dec 10 14:05:54 CET 2019


On Sun, 24 Nov 2019 at 13:30, Cristian Ciocaltea
<cristian.ciocaltea at gmail.com> wrote:
>
> The parser responsible for the '[make-flags]' section in
> the '.buildman' settings file is currently not able to
> handle quoted strings, as given in the sample bellow:
>
> [make-flags]
> qemu_arm=HOSTCC="cc -isystem /add/include" HOSTLDFLAGS="-L/add/lib"
>
> This patch replaces the simple string splitter based on the <space>
> delimiter with a regex tokenizer that preserves spaces inside double
> quoted strings.
>
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea at gmail.com>
> ---
>  tools/buildman/toolchain.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list