diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 17:12:07 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 17:12:07 -0400 |
| commit | e4d6152b520184be87aa65cb7035bf87acd27c14 (patch) | |
| tree | 4395b636552a5d475b7e64f0522d77ae01eba0da /scripts | |
| parent | da9e82b3b8989fc09e2a4c45b9da604ba2b4c46d (diff) | |
| parent | 7a996d3ab150bb0e1b71fa182f70199a703efdd1 (diff) | |
Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (26 commits)
kconfig: add savedefconfig
kconfig: code refactoring in confdata.c
kconfig: refactor code in symbol.c
kconfig: add alldefconfig
kconfig: print more info when we see a recursive dependency
kconfig: save location of config symbols
kconfig: change nonint_oldconfig to listnewconfig
kconfig: rename loose_nonint_oldconfig => oldnoconfig
kconfig: use long options in conf
kconfig: fix MODULES-related bug in case of no .config
kconfig: make randconfig fair for booleans
kconfig: Don't write invisible choice values
kbuild: Warn on selecting symbols with unmet direct dependencies
scripts:conf.c Fix warning: variable 'type' set but not used
menuconfig: truncate list items
menuconfig: fix to center checklist correctly in a corner case
xconfig: add support to show hidden options which have prompts
xconfig: remove unused function
xconfig: clean up
gconfig: fix null pointer warning
...
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/Makefile | 77 | ||||
| -rw-r--r-- | scripts/kconfig/conf.c | 181 | ||||
| -rw-r--r-- | scripts/kconfig/confdata.c | 221 | ||||
| -rw-r--r-- | scripts/kconfig/expr.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/expr.h | 3 | ||||
| -rw-r--r-- | scripts/kconfig/gconf.c | 7 | ||||
| -rw-r--r-- | scripts/kconfig/lkc.h | 2 | ||||
| -rw-r--r-- | scripts/kconfig/lkc_proto.h | 1 | ||||
| -rw-r--r-- | scripts/kconfig/lxdialog/checklist.c | 10 | ||||
| -rw-r--r-- | scripts/kconfig/mconf.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/menu.c | 27 | ||||
| -rw-r--r-- | scripts/kconfig/qconf.cc | 106 | ||||
| -rw-r--r-- | scripts/kconfig/qconf.h | 17 | ||||
| -rw-r--r-- | scripts/kconfig/symbol.c | 292 |
14 files changed, 666 insertions, 282 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 7ea649da1940..de934def410f 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -21,17 +21,17 @@ menuconfig: $(obj)/mconf | |||
| 21 | $< $(Kconfig) | 21 | $< $(Kconfig) |
| 22 | 22 | ||
| 23 | config: $(obj)/conf | 23 | config: $(obj)/conf |
| 24 | $< $(Kconfig) | 24 | $< --oldaskconfig $(Kconfig) |
| 25 | 25 | ||
| 26 | nconfig: $(obj)/nconf | 26 | nconfig: $(obj)/nconf |
| 27 | $< $(Kconfig) | 27 | $< $(Kconfig) |
| 28 | 28 | ||
| 29 | oldconfig: $(obj)/conf | 29 | oldconfig: $(obj)/conf |
| 30 | $< -o $(Kconfig) | 30 | $< --$@ $(Kconfig) |
| 31 | 31 | ||
| 32 | silentoldconfig: $(obj)/conf | 32 | silentoldconfig: $(obj)/conf |
| 33 | $(Q)mkdir -p include/generated | 33 | $(Q)mkdir -p include/generated |
| 34 | $< -s $(Kconfig) | 34 | $< --$@ $(Kconfig) |
| 35 | 35 | ||
| 36 | # if no path is given, then use src directory to find file | 36 | # if no path is given, then use src directory to find file |
| 37 | ifdef LSMOD | 37 | ifdef LSMOD |
| @@ -44,15 +44,15 @@ endif | |||
| 44 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | 44 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf |
| 45 | $(Q)mkdir -p include/generated | 45 | $(Q)mkdir -p include/generated |
| 46 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | 46 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config |
| 47 | $(Q)if [ -f .config ]; then \ | 47 | $(Q)if [ -f .config ]; then \ |
| 48 | cmp -s .tmp.config .config || \ | 48 | cmp -s .tmp.config .config || \ |
| 49 | (mv -f .config .config.old.1; \ | 49 | (mv -f .config .config.old.1; \ |
| 50 | mv -f .tmp.config .config; \ | 50 | mv -f .tmp.config .config; \ |
| 51 | $(obj)/conf -s $(Kconfig); \ | 51 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
| 52 | mv -f .config.old.1 .config.old) \ | 52 | mv -f .config.old.1 .config.old) \ |
| 53 | else \ | 53 | else \ |
| 54 | mv -f .tmp.config .config; \ | 54 | mv -f .tmp.config .config; \ |
| 55 | $(obj)/conf -s $(Kconfig); \ | 55 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
| 56 | fi | 56 | fi |
| 57 | $(Q)rm -f .tmp.config | 57 | $(Q)rm -f .tmp.config |
| 58 | 58 | ||
| @@ -60,15 +60,15 @@ localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | |||
| 60 | $(Q)mkdir -p include/generated | 60 | $(Q)mkdir -p include/generated |
| 61 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | 61 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config |
| 62 | $(Q)sed -i s/=m/=y/ .tmp.config | 62 | $(Q)sed -i s/=m/=y/ .tmp.config |
| 63 | $(Q)if [ -f .config ]; then \ | 63 | $(Q)if [ -f .config ]; then \ |
| 64 | cmp -s .tmp.config .config || \ | 64 | cmp -s .tmp.config .config || \ |
| 65 | (mv -f .config .config.old.1; \ | 65 | (mv -f .config .config.old.1; \ |
| 66 | mv -f .tmp.config .config; \ | 66 | mv -f .tmp.config .config; \ |
| 67 | $(obj)/conf -s $(Kconfig); \ | 67 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
| 68 | mv -f .config.old.1 .config.old) \ | 68 | mv -f .config.old.1 .config.old) \ |
| 69 | else \ | 69 | else \ |
| 70 | mv -f .tmp.config .config; \ | 70 | mv -f .tmp.config .config; \ |
| 71 | $(obj)/conf -s $(Kconfig); \ | 71 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
| 72 | fi | 72 | fi |
| 73 | $(Q)rm -f .tmp.config | 73 | $(Q)rm -f .tmp.config |
| 74 | 74 | ||
| @@ -95,30 +95,29 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | |||
| 95 | $(Q)rm -f arch/um/Kconfig.arch | 95 | $(Q)rm -f arch/um/Kconfig.arch |
| 96 | $(Q)rm -f $(obj)/config.pot | 96 | $(Q)rm -f $(obj)/config.pot |
| 97 | 97 | ||
| 98 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig | 98 | PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig |
| 99 | 99 | ||
| 100 | randconfig: $(obj)/conf | 100 | allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(obj)/conf |
| 101 | $< -r $(Kconfig) | 101 | $< --$@ $(Kconfig) |
| 102 | 102 | ||
| 103 | allyesconfig: $(obj)/conf | 103 | PHONY += listnewconfig oldnoconfig savedefconfig defconfig |
| 104 | $< -y $(Kconfig) | ||
| 105 | 104 | ||
| 106 | allnoconfig: $(obj)/conf | 105 | listnewconfig oldnoconfig: $(obj)/conf |
| 107 | $< -n $(Kconfig) | 106 | $< --$@ $(Kconfig) |
| 108 | 107 | ||
| 109 | allmodconfig: $(obj)/conf | 108 | savedefconfig: $(obj)/conf |
| 110 | $< -m $(Kconfig) | 109 | $< --$@=defconfig $(Kconfig) |
| 111 | 110 | ||
| 112 | defconfig: $(obj)/conf | 111 | defconfig: $(obj)/conf |
| 113 | ifeq ($(KBUILD_DEFCONFIG),) | 112 | ifeq ($(KBUILD_DEFCONFIG),) |
| 114 | $< -d $(Kconfig) | 113 | $< --defconfig $(Kconfig) |
| 115 | else | 114 | else |
| 116 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" | 115 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" |
| 117 | $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) | 116 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) |
| 118 | endif | 117 | endif |
| 119 | 118 | ||
| 120 | %_defconfig: $(obj)/conf | 119 | %_defconfig: $(obj)/conf |
| 121 | $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) | 120 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) |
| 122 | 121 | ||
| 123 | # Help text used by make help | 122 | # Help text used by make help |
| 124 | help: | 123 | help: |
| @@ -131,11 +130,15 @@ help: | |||
| 131 | @echo ' localmodconfig - Update current config disabling modules not loaded' | 130 | @echo ' localmodconfig - Update current config disabling modules not loaded' |
| 132 | @echo ' localyesconfig - Update current config converting local mods to core' | 131 | @echo ' localyesconfig - Update current config converting local mods to core' |
| 133 | @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' | 132 | @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' |
| 134 | @echo ' randconfig - New config with random answer to all options' | 133 | @echo ' defconfig - New config with default from ARCH supplied defconfig' |
| 135 | @echo ' defconfig - New config with default answer to all options' | 134 | @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' |
| 136 | @echo ' allmodconfig - New config selecting modules when possible' | ||
| 137 | @echo ' allyesconfig - New config where all options are accepted with yes' | ||
| 138 | @echo ' allnoconfig - New config where all options are answered with no' | 135 | @echo ' allnoconfig - New config where all options are answered with no' |
| 136 | @echo ' allyesconfig - New config where all options are accepted with yes' | ||
| 137 | @echo ' allmodconfig - New config selecting modules when possible' | ||
| 138 | @echo ' alldefconfig - New config with all symbols set to default' | ||
| 139 | @echo ' randconfig - New config with random answer to all options' | ||
| 140 | @echo ' listnewconfig - List new options' | ||
| 141 | @echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)' | ||
| 139 | 142 | ||
| 140 | # lxdialog stuff | 143 | # lxdialog stuff |
| 141 | check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh | 144 | check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh |
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 9960d1c303f8..010600ef58c0 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include <string.h> | 10 | #include <string.h> |
| 11 | #include <time.h> | 11 | #include <time.h> |
| 12 | #include <unistd.h> | 12 | #include <unistd.h> |
| 13 | #include <getopt.h> | ||
| 13 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
| 14 | #include <sys/time.h> | 15 | #include <sys/time.h> |
| 15 | |||
