From: Petr Vorel <petr.vorel@gmail.com>
To: linux-kbuild@vger.kernel.org
Cc: Petr Vorel <petr.vorel@gmail.com>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Marcel Patzlaff <m.patzlaff@pilz.de>,
Nasser Afshin <afshin.nasser@gmail.com>,
Angelo Compagnucci <angelo.compagnucci@gmail.com>,
Arnout Vandecappelle <arnout@mind.be>,
Matthew Weber <matthew.weber@rockwellcollins.com>,
John Stultz <john.stultz@linaro.org>
Subject: [PATCH 1/1] merge_config.sh: Replace prefix CONFIG_ with any prefix
Date: Sun, 28 Oct 2018 13:55:10 +0100 [thread overview]
Message-ID: <20181028125510.9346-1-petr.vorel@gmail.com> (raw)
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
next reply other threads:[~2018-10-28 21:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-28 12:55 Petr Vorel [this message]
2018-10-29 15:22 ` [PATCH 1/1] merge_config.sh: Replace prefix CONFIG_ with any prefix 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181028125510.9346-1-petr.vorel@gmail.com \
--to=petr.vorel@gmail.com \
--cc=afshin.nasser@gmail.com \
--cc=angelo.compagnucci@gmail.com \
--cc=arnout@mind.be \
--cc=john.stultz@linaro.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=m.patzlaff@pilz.de \
--cc=matthew.weber@rockwellcollins.com \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox