scripts/kconfig/merge_config: don't redefine 'y' to 'm'
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 12 Nov 2018 08:38:55 +0000 (09:38 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 15 Nov 2018 14:49:35 +0000 (23:49 +0900)
commita9b722847872d43595d072d7fd550f08fe6764fd
tree1a7efb7002ac8b4652f8b1061d65226b83d69716
parentccda4af0f4b92f7b4c308d3acc262f4a7e3affad
scripts/kconfig/merge_config: don't redefine 'y' to 'm'

In today's merge_config.sh the order of the config fragment files dictates
the output of a config option. With this approach we will get different
.config files depending on the order of the config fragment files.

So doing something like:
$ ./merge/kconfig/merge_config.sh selftest.config drm.config

Where selftest.config defines DRM=y and drm.config defines DRM=m, the
result will be "DRM=m".

Rework to add a switch to get builtin '=y' precedence over modules '=m',
this will result in "DRM=y". If we do something like this:

$ ./merge/kconfig/merge_config.sh -y selftest.config drm.config

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/merge_config.sh