kconfig: add script to manipulate .config files on the command line
Andi Kleen authored
I often change single options in .config files. Instead of using
an editor or one of the frontends it's convenient to do this from
the command line. It's also useful to do from automated build scripts
when building different variants from a base config file.

I extracted most of the CONFIG manipulation code from one of my
build scripts into a new shell script scripts/config

The script is not integrated with the normal Kconfig machinery
and doesn't do any checking against Kconfig files, but just manipulates
that text format. This is always done at make time anyways.

I believe this script would be a useful standard addition for scripts/*

Sample usage:

./scripts/config --disable smp
Disable SMP in .config file

./scripts/config --file otherdir/.config --module e1000e
Enable E1000E as module in otherdir/.config

./scripts/config --state smp
y
Check state of config option CONFIG_SMP

After merging into git please make scripts/config executable
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
8e54701e
Name Last commit Last update
..
basic Update .gitignore files for generated targets
genksyms allow stripping of generated symbols under CONFIG_KALLSYMS_ALL
kconfig kconfig: improve error messages for bad source statements
ksymoops Linux-2.6.12-rc2
mod kbuild: prevent modpost from looking for a .cmd file for a static library linked into a module
package kbuild: remove TAR_IGNORE
rt-tester [PATCH] rtmutex: Modify rtmutex-tester to test the setscheduler propagation
selinux SELinux: add gitignore file for mdp script
trace tracing: add "power-tracer": C/P state tracer to help power optimization
tracing ftrace: add a script to produce a hierarchical view of a function trace
.gitignore fix modules_install via NFS
Kbuild.include kbuild: use KECHO convenience echo
Lindent scripts/Lindent: support gnu indent v2.2.10
Makefile fix modules_install via NFS
Makefile.build Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next
Makefile.clean kbuild: fix some minor typoes
Makefile.fwinst firmware: silence __fw_modbuild and __fw_modinst 'Nothing to be done' messages
Makefile.headersinst kbuild: install all headers when arch is changed
Makefile.host kbuild: fix some minor typoes
Makefile.lib kbuild: expand -I in KBUILD_CPPFLAGS
Makefile.modinst kbuild: strip generated symbols from *.ko
Makefile.modpost kbuild: fix KBUILD_EXTRA_SYMBOLS
bin2c.c Linux-2.6.12-rc2
binoffset.c update the email address of Randy Dunlap
bloat-o-meter fix bloat-o-meter for ppc64
bootgraph.pl bootchart: improve output based on Dave Jones' feedback
checkincludes.pl Linux-2.6.12-rc2
checkkconfigsymbols.sh kbuild: script to check for undefined Kconfig symbols
checkpatch.pl checkpatch: version: 0.26
checkstack.pl sparc: Add checkstack support
checksyscalls.sh scripts/checksyscalls.sh: fix for non-gnu sed
checkversion.pl kbuild: introduce utsrelease.h
cleanfile scripts: Make cleanfile/cleanpatch warn about long lines
cleanpatch scripts: Make cleanfile/cleanpatch warn about long lines
config kconfig: add script to manipulate .config files on the command line
conmakehash.c [PATCH] kbuild: signed char fixes for scripts
decodecode scripts: improve the decodecode script
diffconfig kconfig: add diffconfig utility
export_report.pl kbuild: fix perl usage in export_report.pl
extract-ikconfig remove bashisms from scripts/extract-ikconfig
gcc-version.sh kbuild: fix buglet in gcc-version.sh
gcc-x86_64-has-stack-protector.sh [PATCH] Add the -fstack-protector option to the CFLAGS
gen_initramfs_list.sh kbuild: fix unportability in gen_initramfs_list.sh
headerdep.pl kbuild: add headerdep used to detect inclusion cycles in header files
headers.sh kbuild: prepare headers_* for arch/$ARCH/include
headers_check.pl kbuild: ignore a few files in headers_check
headers_install.pl kbuild: in headers_install autoconvert asm/inline/volatile to __xxx__
ihex2fw.c fix modules_install via NFS
kallsyms.c allow stripping of generated symbols under CONFIG_KALLSYMS_ALL
kernel-doc kernel-doc: check for extra kernel-doc notations
makelst
markup_oops.pl
mkcompile_h
mkmakefile
mksysmap
mkuboot.sh
mkversion
namespace.pl
patch-kernel
pnmtologo.c
profile2linkerlist.pl
recordmcount.pl
setlocalversion
show_delta
strip-symbols
tags.sh
unifdef.c
ver_linux