buildman: Improve [make-flags] section parser to allow quoted strings
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Sun, 24 Nov 2019 20:30:26 +0000 (22:30 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 10 Dec 2019 12:54:55 +0000 (05:54 -0700)
commit4251fbc6fb19cc7406ea450145d307d4b2ec19e9
tree8d84a3b9470808eddde7b69806da91a3b6f52198
parent5e5c785e34a18a12faedc93829e2a88ef22ade2a
buildman: Improve [make-flags] section parser to allow quoted strings

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@gmail.com>
tools/buildman/toolchain.py