utils/config: new script to manipulate .config files on the command line
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Tue, 26 Sep 2017 21:15:02 +0000 (23:15 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 27 Sep 2017 20:45:35 +0000 (22:45 +0200)
commitf2c5c7a263d9d61faba80544e0f6ac6da03716ee
tree760eca7dcb0c0dcf457f5c1b969dd29d3a8290f4
parentf1738808fdb73d9eb0757ef5d3005994e5268136
utils/config: new script to manipulate .config files on the command line

Default prefix is set to `BR2_` but may be overidden by setting
BR2_PREFIX.

Example usage:

Enable `BR2_PACKAGE_GNUPG`:
./utils/config --package --enable GNUPG

Check state of config option `BR2_PACKAGE_GNUPG`:
./utils/config --package --state GNUPG
y

Enable `BR2_PACKAGE_GNUPG`:
./utils/config --package --disable GNUPG

Set `BR2_TARGET_GENERIC_ISSUE` to "Welcome":
./utils/config --set-str  TARGET_GENERIC_ISSUE "Welcome"

Copied from the Linux kernel (4.13-rc6) source code and adapted to
Buildroot.
Thanks to Andi Kleen who is the original author of this script.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
[Arnout: merge the two tr invications]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
utils/config [new file with mode: 0755]