]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: merge_config: avoid false positive matches from comment lines
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 5 Nov 2018 08:19:36 +0000 (17:19 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 11 Nov 2018 14:04:51 +0000 (23:04 +0900)
commit11db2896a3a1711cf92494fa983b7ddcc020d065
tree6a1ee008c52f402b8dc93c343aaea45c167ba7cf
parent877dd4e13142e1a64623b33051e43c43a6c73e08
kconfig: merge_config: avoid false positive matches from comment lines

The current SED_CONFIG_EXP could match to comment lines in config
fragment files, especially when CONFIG_PREFIX_ is empty. For example,
Buildroot uses empty prefixing; starting symbols with BR2_ is just
convention.

Make the sed expression more robust against false positives from
comment lines. The new sed expression matches to only valid patterns.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
scripts/kconfig/merge_config.sh