]> git.ipfire.org Git - u-boot.git/commit - tools/moveconfig.py
tools: moveconfig: fix needless move for config with default 1
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 15 Jun 2016 05:33:50 +0000 (14:33 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Jun 2016 00:22:42 +0000 (09:22 +0900)
commit5030159e27a1d6293f0f064807d4eef5dd6de714
tree3acb9fb5ab4dc40003ed4584235d82943ec2805d
parent9f823615af919c6b89f0b80197f009f78299dcde
tools: moveconfig: fix needless move for config with default 1

When moving an integer type option with default value 1, the tool
moves configs with the same value as the default (, and then removed
by the later savedefconfig).  This is a needless operation.

The KconfigParser.parse_one_config() should compare the config after
the "=y -> =1" fixup.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
tools/moveconfig.py