public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] merge_config.sh: Replace prefix CONFIG_ with any prefix
@ 2018-10-28 12:55 Petr Vorel
  2018-10-29 15:22 ` Masahiro Yamada
  0 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2018-10-28 12:55 UTC (permalink / raw)
  To: linux-kbuild
  Cc: Petr Vorel, Masahiro Yamada, Marcel Patzlaff, Nasser Afshin,
	Angelo Compagnucci, Arnout Vandecappelle, Matthew Weber,
	John Stultz

merge_config.sh expect prefix from kernel: CONFIG_.
There some other projects using kconfig with different prefixes
(e.g. buildroot: BR2_ prefix). While there could be some option
to specify config prefix [1] [2], IMHO it's better to not specify
prefix (expect just any prefix).

[1] http://patchwork.ozlabs.org/patch/824051/
[2] https://patchwork.ozlabs.org/patch/988890/

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Suggested-by: Marcel Patzlaff <m.patzlaff@pilz.de>
---
NOTE: I deliberately left prefix CONFIG_ in comment:
# allnoconfig: Fills in any missing symbols with # CONFIG_* is not set

Kind regards,
Petr
---
 scripts/kconfig/merge_config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh
index 67d131447631..538222848bcf 100755
--- a/scripts/kconfig/merge_config.sh
+++ b/scripts/kconfig/merge_config.sh
@@ -99,7 +99,7 @@ if [ ! -r "$INITFILE" ]; then
 fi
 
 MERGE_LIST=$*
-SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p"
+SED_CONFIG_EXP="s/^\(# \)\{0,1\}\([A-Z0-9_]\+_[a-zA-Z0-9_]*\)[= ].*/\2/p"
 TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX)
 
 echo "Using $INITFILE as base"
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-30  4:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-28 12:55 [PATCH 1/1] merge_config.sh: Replace prefix CONFIG_ with any prefix Petr Vorel
2018-10-29 15:22 ` Masahiro Yamada
2018-10-29 15:40   ` Petr Vorel
2018-10-29 16:22     ` Masahiro Yamada
2018-10-29 18:27       ` Petr Vorel
2018-10-29 19:18         ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox