diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 19:54:01 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 19:54:01 -0400 |
| commit | f3ae1c75203535f65448517e46c8dd70a56b6c71 (patch) | |
| tree | 58f719cb97666dcfb3392c6c0547d6cbce2e68c8 /scripts | |
| parent | 9720d75399fd2655a6b6fb06abcf548150f22362 (diff) | |
| parent | d49e46875c11a09e80e76c66db90710369b8fe12 (diff) | |
Merge branch 'kconfig-for-40' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kconfig-for-40' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
xconfig: merge code path to conf_write()
kconfig: do not record timestamp in .config
gconfig: Hide unused left treeview when start up the interface
gconfig: enable rules hint for main treeviews
MAINTAINERS: Update KCONFIG entry
kconfig-language: add to hints
kconfig: Document the new "visible if" syntax
kconfig: quiet commands when V=0
kconfig: change update-po-config to reflect new layout of arch/um
kconfig: make update-po-config work in KBUILD_OUTPUT
kconfig: rearrange clean-files
kconfig: change gconf to modify hostprogs-y like nconf and mconf
kconfig: change qconf to modify hostprogs-y like nconf and mconf
kconfig: only build kxgettext when needed
nconfig: Silence unused return values from wattrset
kconfig: Do not record timestamp in auto.conf and autoconf.h
kconfig: get rid of unused flags
kconfig: allow multiple inclusion of the same file
kconfig: Avoid buffer underrun in choice input
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/Makefile | 38 | ||||
| -rw-r--r-- | scripts/kconfig/confdata.c | 20 | ||||
| -rw-r--r-- | scripts/kconfig/expr.h | 4 | ||||
| -rw-r--r-- | scripts/kconfig/gconf.c | 12 | ||||
| -rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 33 | ||||
| -rw-r--r-- | scripts/kconfig/nconf.c | 14 | ||||
| -rw-r--r-- | scripts/kconfig/qconf.cc | 5 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.l | 33 |
8 files changed, 81 insertions, 78 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 368ae306aee..faa9a4701b6 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -77,14 +77,15 @@ localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | |||
| 77 | # The symlink is used to repair a deficiency in arch/um | 77 | # The symlink is used to repair a deficiency in arch/um |
| 78 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | 78 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h |
| 79 | $(Q)echo " GEN config" | 79 | $(Q)echo " GEN config" |
| 80 | $(Q)xgettext --default-domain=linux \ | 80 | $(Q)xgettext --default-domain=linux \ |
| 81 | --add-comments --keyword=_ --keyword=N_ \ | 81 | --add-comments --keyword=_ --keyword=N_ \ |
| 82 | --from-code=UTF-8 \ | 82 | --from-code=UTF-8 \ |
| 83 | --files-from=scripts/kconfig/POTFILES.in \ | 83 | --files-from=$(srctree)/scripts/kconfig/POTFILES.in \ |
| 84 | --directory=$(srctree) --directory=$(objtree) \ | ||
| 84 | --output $(obj)/config.pot | 85 | --output $(obj)/config.pot |
| 85 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot | 86 | $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot |
| 86 | $(Q)ln -fs Kconfig.i386 arch/um/Kconfig.arch | 87 | $(Q)ln -fs Kconfig.x86 arch/um/Kconfig |
| 87 | $(Q)(for i in `ls arch/*/Kconfig`; \ | 88 | $(Q)(for i in `ls $(srctree)/arch/*/Kconfig`; \ |
| 88 | do \ | 89 | do \ |
| 89 | echo " GEN $$i"; \ | 90 | echo " GEN $$i"; \ |
| 90 | $(obj)/kxgettext $$i \ | 91 | $(obj)/kxgettext $$i \ |
| @@ -92,7 +93,7 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | |||
| 92 | done ) | 93 | done ) |
| 93 | $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ | 94 | $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ |
| 94 | --output $(obj)/linux.pot | 95 | --output $(obj)/linux.pot |
| 95 | $(Q)rm -f arch/um/Kconfig.arch | 96 | $(Q)rm -f $(srctree)/arch/um/Kconfig |
| 96 | $(Q)rm -f $(obj)/config.pot | 97 | $(Q)rm -f $(obj)/config.pot |
| 97 | 98 | ||
| 98 | PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig | 99 | PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig |
| @@ -168,8 +169,11 @@ conf-objs := conf.o zconf.tab.o | |||
| 168 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) | 169 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
| 169 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o | 170 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o |
| 170 | kxgettext-objs := kxgettext.o zconf.tab.o | 171 | kxgettext-objs := kxgettext.o zconf.tab.o |
| 172 | qconf-cxxobjs := qconf.o | ||
| 173 | qconf-objs := kconfig_load.o zconf.tab.o | ||
| 174 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o | ||
| 171 | 175 | ||
| 172 | hostprogs-y := conf qconf gconf kxgettext | 176 | hostprogs-y := conf |
| 173 | 177 | ||
| 174 | ifeq ($(MAKECMDGOALS),nconfig) | 178 | ifeq ($(MAKECMDGOALS),nconfig) |
| 175 | hostprogs-y += nconf | 179 | hostprogs-y += nconf |
| @@ -179,6 +183,10 @@ ifeq ($(MAKECMDGOALS),menuconfig) | |||
| 179 | hostprogs-y += mconf | 183 | hostprogs-y += mconf |
| 180 | endif | 184 | endif |
| 181 | 185 | ||
| 186 | ifeq ($(MAKECMDGOALS),update-po-config) | ||
| 187 | hostprogs-y += kxgettext | ||
| 188 | endif | ||
| 189 | |||
| 182 | ifeq ($(MAKECMDGOALS),xconfig) | 190 | ifeq ($(MAKECMDGOALS),xconfig) |
| 183 | qconf-target := 1 | 191 | qconf-target := 1 |
| 184 | endif | 192 | endif |
| @@ -188,16 +196,15 @@ endif | |||
| 188 | 196 | ||
| 189 | 197 | ||
| 190 | ifeq ($(qconf-target),1) | 198 | ifeq ($(qconf-target),1) |
| 191 | qconf-cxxobjs := qconf.o | 199 | hostprogs-y += qconf |
| 192 | qconf-objs := kconfig_load.o zconf.tab.o | ||
| 193 | endif | 200 | endif |
| 194 | 201 | ||
| 195 | ifeq ($(gconf-target),1) | 202 | ifeq ($(gconf-target),1) |
| 196 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o | 203 | hostprogs-y += gconf |
| 197 | endif | 204 | endif |
| 198 | 205 | ||
| 199 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ | 206 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck |
| 200 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 207 | clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
| 201 | clean-files += mconf qconf gconf nconf | 208 | clean-files += mconf qconf gconf nconf |
| 202 | clean-files += config.pot linux.pot | 209 | clean-files += config.pot linux.pot |
| 203 | 210 | ||
| @@ -321,11 +328,12 @@ $(obj)/%.moc: $(src)/%.h | |||
| 321 | $(KC_QT_MOC) -i $< -o $@ | 328 | $(KC_QT_MOC) -i $< -o $@ |
| 322 | 329 | ||
| 323 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h | 330 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h |
| 324 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | 331 | $(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
| 325 | 332 | ||
| 326 | # Extract gconf menu items for I18N support | 333 | # Extract gconf menu items for I18N support |
| 327 | $(obj)/gconf.glade.h: $(obj)/gconf.glade | 334 | $(obj)/gconf.glade.h: $(obj)/gconf.glade |
| 328 | intltool-extract --type=gettext/glade $(obj)/gconf.glade | 335 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ |
| 336 | $(obj)/gconf.glade | ||
| 329 | 337 | ||
| 330 | ### | 338 | ### |
| 331 | # The following requires flex/bison/gperf | 339 | # The following requires flex/bison/gperf |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 61c35bf2d9c..2bafd9a7c8d 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
| @@ -560,8 +560,6 @@ int conf_write(const char *name) | |||
| 560 | const char *basename; | 560 | const char *basename; |
| 561 | const char *str; | 561 | const char *str; |
| 562 | char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; | 562 | char dirname[PATH_MAX+1], tmpname[PATH_MAX+1], newname[PATH_MAX+1]; |
| 563 | time_t now; | ||
| 564 | int use_timestamp = 1; | ||
| 565 | char *env; | 563 | char *env; |
| 566 | 564 | ||
| 567 | dirname[0] = 0; | 565 | dirname[0] = 0; |
| @@ -598,19 +596,11 @@ int conf_write(const char *name) | |||
| 598 | if (!out) | 596 | if (!out) |
| 599 | return 1; | 597 | return 1; |
| 600 | 598 | ||
| 601 | time(&now); | ||
| 602 | env = getenv("KCONFIG_NOTIMESTAMP"); | ||
| 603 | if (env && *env) | ||
| 604 | use_timestamp = 0; | ||
| 605 | |||
| 606 | fprintf(out, _("#\n" | 599 | fprintf(out, _("#\n" |
| 607 | "# Automatically generated make config: don't edit\n" | 600 | "# Automatically generated make config: don't edit\n" |
| 608 | "# %s\n" | 601 | "# %s\n" |
| 609 | "%s%s" | ||
| 610 | "#\n"), | 602 | "#\n"), |
| 611 | rootmenu.prompt->text, | 603 | rootmenu.prompt->text); |
| 612 | use_timestamp ? "# " : "", | ||
| 613 | use_timestamp ? ctime(&now) : ""); | ||
| 614 | 604 | ||
| 615 | if (!conf_get_changed()) | 605 | if (!conf_get_changed()) |
| 616 | sym_clear_all_valid(); | 606 | sym_clear_all_valid(); |
| @@ -784,7 +774,6 @@ int conf_write_autoconf(void) | |||
| 784 | const char *str; | 774 | const char *str; |
| 785 | const char *name; | 775 | const char *name; |
| 786 | FILE *out, *tristate, *out_h; | 776 | FILE *out, *tristate, *out_h; |
| 787 | time_t now; | ||
| 788 | int i; | 777 | int i; |
| 789 | 778 | ||
| 790 | sym_clear_all_valid(); | 779 | sym_clear_all_valid(); |
| @@ -811,22 +800,19 @@ int conf_write_autoconf(void) | |||
| 811 | return 1; | 800 | return 1; |
| 812 | } | 801 | } |
| 813 | 802 | ||
| 814 | time(&now); | ||
| 815 | fprintf(out, "#\n" | 803 | fprintf(out, "#\n" |
| 816 | "# Automatically generated make config: don't edit\n" | 804 | "# Automatically generated make config: don't edit\n" |
| 817 | "# %s\n" | 805 | "# %s\n" |
| 818 | "# %s" | ||
| 819 | "#\n", | 806 | "#\n", |
| 820 | rootmenu.prompt->text, ctime(&now)); | 807 | rootmenu.prompt->text); |
| 821 | fprintf(tristate, "#\n" | 808 | fprintf(tristate, "#\n" |
| 822 | "# Automatically generated - do not edit\n" | 809 | "# Automatically generated - do not edit\n" |
| 823 | "\n"); | 810 | "\n"); |
| 824 | fprintf(out_h, "/*\n" | 811 | fprintf(out_h, "/*\n" |
| 825 | " * Automatically generated C config: don't edit\n" | 812 | " * Automatically generated C config: don't edit\n" |
| 826 | " * %s\n" | 813 | " * %s\n" |
| 827 | " * %s" | ||
| 828 | " */\n", | 814 | " */\n", |
| 829 | rootmenu.prompt->text, ctime(&now)); | 815 | rootmenu.prompt->text); |
| 830 | 816 | ||
| 831 | for_all_symbols(i, sym) { | 817 | for_all_symbols(i, sym) { |
| 832 | sym_calc_value(sym); | ||
