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)
commit6bbe4385d035c6fac56f840a59861a0310ce137b
tree6a1ee008c52f402b8dc93c343aaea45c167ba7cf
parent02826a6ba301b72461c3706e1cc66d5571cd327e
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