diff options
| author | Michal Marek <mmarek@suse.cz> | 2011-06-08 11:40:20 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2011-06-08 12:03:57 -0400 |
| commit | 36fee53510f91d8ac5eb5dcba0e431a21ebdd5cd (patch) | |
| tree | 02cf4abcfc033d75f11b00055280e14eeb86e7e0 /scripts | |
| parent | a61944c251c3e68c4bbf6eb96ff61c7b286351c5 (diff) | |
| parent | 1ea3ad4e93222faf1d138ceb10291376d2da7cc6 (diff) | |
Merge branch 'kconfig-trivial' of git://github.com/lacombar/linux-2.6 into kbuild/kconfig
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/Makefile | 23 | ||||
| -rw-r--r-- | scripts/kconfig/conf.c | 5 | ||||
| -rw-r--r-- | scripts/kconfig/confdata.c | 9 | ||||
| -rw-r--r-- | scripts/kconfig/expr.c | 1 | ||||
| -rw-r--r-- | scripts/kconfig/expr.h | 3 | ||||
| -rw-r--r-- | scripts/kconfig/gconf.c | 38 | ||||
| -rw-r--r-- | scripts/kconfig/kconfig_load.c | 35 | ||||
| -rw-r--r-- | scripts/kconfig/kxgettext.c | 1 | ||||
| -rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 1 | ||||
| -rw-r--r-- | scripts/kconfig/lkc.h | 5 | ||||
| -rw-r--r-- | scripts/kconfig/mconf.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/menu.c | 3 | ||||
| -rw-r--r-- | scripts/kconfig/nconf.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/qconf.cc | 4 | ||||
| -rw-r--r-- | scripts/kconfig/symbol.c | 1 | ||||
| -rw-r--r-- | scripts/kconfig/util.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.l | 1 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.tab.c_shipped | 1 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.y | 1 |
19 files changed, 26 insertions, 112 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index faa9a4701b6f..84abb2fc61d1 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -170,8 +170,8 @@ mconf-objs := mconf.o zconf.tab.o $(lxdialog) | |||
| 170 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o | 170 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o |
| 171 | kxgettext-objs := kxgettext.o zconf.tab.o | 171 | kxgettext-objs := kxgettext.o zconf.tab.o |
| 172 | qconf-cxxobjs := qconf.o | 172 | qconf-cxxobjs := qconf.o |
| 173 | qconf-objs := kconfig_load.o zconf.tab.o | 173 | qconf-objs := zconf.tab.o |
| 174 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o | 174 | gconf-objs := gconf.o zconf.tab.o |
| 175 | 175 | ||
| 176 | hostprogs-y := conf | 176 | hostprogs-y := conf |
| 177 | 177 | ||
| @@ -203,7 +203,7 @@ ifeq ($(gconf-target),1) | |||
| 203 | hostprogs-y += gconf | 203 | hostprogs-y += gconf |
| 204 | endif | 204 | endif |
| 205 | 205 | ||
| 206 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck | 206 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck |
| 207 | clean-files += 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 |
| 208 | clean-files += mconf qconf gconf nconf | 208 | clean-files += mconf qconf gconf nconf |
| 209 | clean-files += config.pot linux.pot | 209 | clean-files += config.pot linux.pot |
| @@ -223,12 +223,12 @@ HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) | |||
| 223 | HOSTCFLAGS_lex.zconf.o := -I$(src) | 223 | HOSTCFLAGS_lex.zconf.o := -I$(src) |
| 224 | HOSTCFLAGS_zconf.tab.o := -I$(src) | 224 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
| 225 | 225 | ||
| 226 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl | 226 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) |
| 227 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK | 227 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) |
| 228 | 228 | ||
| 229 | HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl | 229 | HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` |
| 230 | HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | 230 | HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ |
| 231 | -D LKC_DIRECT_LINK | 231 | -Wno-missing-prototypes |
| 232 | 232 | ||
| 233 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | 233 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
| 234 | 234 | ||
| @@ -318,18 +318,11 @@ endif | |||
| 318 | 318 | ||
| 319 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c | 319 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c |
| 320 | 320 | ||
| 321 | $(obj)/kconfig_load.o: $(obj)/lkc_defs.h | 321 | $(obj)/qconf.o: $(obj)/qconf.moc |
| 322 | |||
| 323 | $(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h | ||
| 324 | |||
| 325 | $(obj)/gconf.o: $(obj)/lkc_defs.h | ||
| 326 | 322 | ||
| 327 | $(obj)/%.moc: $(src)/%.h | 323 | $(obj)/%.moc: $(src)/%.h |
| 328 | $(KC_QT_MOC) -i $< -o $@ | 324 | $(KC_QT_MOC) -i $< -o $@ |
| 329 | 325 | ||
| 330 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h | ||
| 331 | $(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | ||
| 332 | |||
| 333 | # Extract gconf menu items for I18N support | 326 | # Extract gconf menu items for I18N support |
| 334 | $(obj)/gconf.glade.h: $(obj)/gconf.glade | 327 | $(obj)/gconf.glade.h: $(obj)/gconf.glade |
| 335 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ | 328 | $(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \ |
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 006ad817cd5f..08c05bcc82c9 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | #include <sys/stat.h> | 14 | #include <sys/stat.h> |
| 15 | #include <sys/time.h> | 15 | #include <sys/time.h> |
| 16 | 16 | ||
| 17 | #define LKC_DIRECT_LINK | ||
| 18 | #include "lkc.h" | 17 | #include "lkc.h" |
| 19 | 18 | ||
| 20 | static void conf(struct menu *menu); | 19 | static void conf(struct menu *menu); |
| @@ -106,6 +105,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) | |||
| 106 | return 0; | 105 | return 0; |
| 107 | } | 106 | } |
| 108 | check_stdin(); | 107 | check_stdin(); |
| 108 | /* fall through */ | ||
| 109 | case oldaskconfig: | 109 | case oldaskconfig: |
| 110 | fflush(stdout); | 110 | fflush(stdout); |
| 111 | xfgets(line, 128, stdin); | 111 | xfgets(line, 128, stdin); |
| @@ -150,6 +150,7 @@ static int conf_string(struct menu *menu) | |||
| 150 | def = NULL; | 150 | def = NULL; |
| 151 | break; | 151 | break; |
| 152 | } | 152 | } |
| 153 | /* fall through */ | ||
| 153 | default: | 154 | default: |
| 154 | line[strlen(line)-1] = 0; | 155 | line[strlen(line)-1] = 0; |
| 155 | def = line; | 156 | def = line; |
| @@ -304,6 +305,7 @@ static int conf_choice(struct menu *menu) | |||
| 304 | break; | 305 | break; |
| 305 | } | 306 | } |
| 306 | check_stdin(); | 307 | check_stdin(); |
| 308 | /* fall through */ | ||
| 307 | case oldaskconfig: | 309 | case oldaskconfig: |
| 308 | fflush(stdout); | 310 | fflush(stdout); |
| 309 | xfgets(line, 128, stdin); | 311 | xfgets(line, 128, stdin); |
| @@ -369,6 +371,7 @@ static void conf(struct menu *menu) | |||
| 369 | check_conf(menu); | 371 | check_conf(menu); |
| 370 | return; | 372 | return; |
| 371 | } | 373 | } |
| 374 | /* fall through */ | ||
| 372 | case P_COMMENT: | 375 | case P_COMMENT: |
| 373 | prompt = menu_get_prompt(menu); | 376 | prompt = menu_get_prompt(menu); |
| 374 | if (prompt) | 377 | if (prompt) |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index d01f962e879f..a49cf4f7dca5 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
| @@ -7,13 +7,13 @@ | |||
| 7 | #include <ctype.h> | 7 | #include <ctype.h> |
| 8 | #include <errno.h> | 8 | #include <errno.h> |
| 9 | #include <fcntl.h> | 9 | #include <fcntl.h> |
| 10 | #include <stdarg.h> | ||
| 10 | #include <stdio.h> | 11 | #include <stdio.h> |
| 11 | #include <stdlib.h> | 12 | #include <stdlib.h> |
| 12 | #include <string.h> | 13 | #include <string.h> |
| 13 | #include <time.h> | 14 | #include <time.h> |
| 14 | #include <unistd.h> | 15 | #include <unistd.h> |
| 15 | 16 | ||
| 16 | #define LKC_DIRECT_LINK | ||
| 17 | #include "lkc.h" | 17 | #include "lkc.h" |
| 18 | 18 | ||
| 19 | static void conf_warning(const char *fmt, ...) | 19 | static void conf_warning(const char *fmt, ...) |
| @@ -128,6 +128,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) | |||
| 128 | sym->flags |= def_flags; | 128 | sym->flags |= def_flags; |
| 129 | break; | 129 | break; |
| 130 | } | 130 | } |
| 131 | /* fall through */ | ||
| 131 | case S_BOOLEAN: | 132 | case S_BOOLEAN: |
| 132 | if (p[0] == 'y') { | 133 | if (p[0] == 'y') { |
| 133 | sym->def[def].tri = yes; | 134 | sym->def[def].tri = yes; |
| @@ -140,7 +141,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) | |||
| 140 | break; | 141 | break; |
| 141 | } | 142 | } |
| 142 | conf_warning("symbol value '%s' invalid for %s", p, sym->name); | 143 | conf_warning("symbol value '%s' invalid for %s", p, sym->name); |
| 143 | break; | 144 | return 1; |
| 144 | case S_OTHER: | 145 | case S_OTHER: |
| 145 | if (*p != '"') { | 146 | if (*p != '"') { |
| 146 | for (p2 = p; *p2 && !isspace(*p2); p2++) | 147 | for (p2 = p; *p2 && !isspace(*p2); p2++) |
| @@ -148,6 +149,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) | |||
| 148 | sym->type = S_STRING; | 149 | sym->type = S_STRING; |
| 149 | goto done; | 150 | goto done; |
| 150 | } | 151 | } |
| 152 | /* fall through */ | ||
| 151 | case S_STRING: | 153 | case S_STRING: |
| 152 | if (*p++ != '"') | 154 | if (*p++ != '"') |
| 153 | break; | 155 | break; |
| @@ -162,6 +164,7 @@ static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) | |||
| 162 | conf_warning("invalid string found"); | ||
