moveconfig: expand simple expressions
authorMarkus Klotzbuecher <markus.klotzbuecher@kistler.com>
Wed, 15 May 2019 13:15:52 +0000 (15:15 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 9 Jul 2019 05:00:04 +0000 (07:00 +0200)
commitb237d358b4256460cfd629e1d6263f0717fd9204
tree6d711f26b48a542f7dd864d9d6594a15b2d8419c
parente5aee22e4be75e75a854ab64503fc80598bc2004
moveconfig: expand simple expressions

Add support for expanding simple expressions and sizes such as
"(4 * 1024)", "(512 << 10)" or "(SZ_256K)".

This can help to significantly reduce the number of "suspicious"
moves, such as

 'CONFIG_ENV_SIZE="(64 << 10)"' was removed by savedefconfig.

If the expansion fails, it falls back to the original string.

Signed-off-by: Markus Klotzbuecher <markus.klotzbuecher@kistler.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Heiko Schocher <hs@denx.de>
tools/moveconfig.py