aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-10-31 06:58:59 -0400
committerMichal Marek <mmarek@suse.cz>2013-10-31 06:58:59 -0400
commite125096e733e966e055ee6033169f68233f9bf9c (patch)
treebba40ae5b4dffa80a748bf4bb9133d8f1be2a253 /scripts
parent5eb1f99ea1f578ce5ce6a757a3a9795e4da8de3b (diff)
parent00d4f8fc2c729b1baf723cacd2b5942b032b6784 (diff)
Merge branch 'yem/kconfig-for-next' of git://gitorious.org/linux-kconfig/linux-kconfig into kbuild/kconfig
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/expr.h2
-rw-r--r--scripts/kconfig/mconf.c60
-rw-r--r--scripts/kconfig/menu.c11
-rw-r--r--scripts/kconfig/qconf.cc5
-rw-r--r--scripts/kconfig/qconf.h1
-rw-r--r--scripts/kconfig/symbol.c2
-rw-r--r--scripts/kconfig/zconf.l1
7 files changed, 43 insertions, 39 deletions
diff --git a/scripts/kconfig/expr.h b/scripts/kconfig/expr.h
index df198a5f4822..ba663e1dc7e3 100644
--- a/scripts/kconfig/expr.h
+++ b/scripts/kconfig/expr.h
@@ -93,7 +93,7 @@ struct symbol {
93#define SYMBOL_CHOICEVAL 0x0020 /* used as a value in a choice block */ 93#define SYMBOL_CHOICEVAL 0x0020 /* used as a value in a choice block */
94#define SYMBOL_VALID 0x0080 /* set when symbol.curr is calculated */ 94#define SYMBOL_VALID 0x0080 /* set when symbol.curr is calculated */
95#define SYMBOL_OPTIONAL 0x0100 /* choice is optional - values can be 'n' */ 95#define SYMBOL_OPTIONAL 0x0100 /* choice is optional - values can be 'n' */
96#define SYMBOL_WRITE 0x0200 /* ? */ 96#define SYMBOL_WRITE 0x0200 /* write symbol to file (KCONFIG_CONFIG) */
97#define SYMBOL_CHANGED 0x0400 /* ? */ 97#define SYMBOL_CHANGED 0x0400 /* ? */
98#define SYMBOL_AUTO 0x1000 /* value from environment variable */ 98#define SYMBOL_AUTO 0x1000 /* value from environment variable */
99#define SYMBOL_CHECKED 0x2000 /* used during dependency checking */ 99#define SYMBOL_CHECKED 0x2000 /* used during dependency checking */
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 2c3963165a0d..59184bb41ef8 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -25,7 +25,7 @@
25static const char mconf_readme[] = N_( 25static const char mconf_readme[] = N_(
26"Overview\n" 26"Overview\n"
27"--------\n" 27"--------\n"
28"This interface let you select features and parameters for the build.\n" 28"This interface lets you select features and parameters for the build.\n"
29"Features can either be built-in, modularized, or ignored. Parameters\n" 29"Features can either be built-in, modularized, or ignored. Parameters\n"
30"must be entered in as decimal or hexadecimal numbers or text.\n" 30"must be entered in as decimal or hexadecimal numbers or text.\n"
31"\n" 31"\n"
@@ -39,15 +39,15 @@ static const char mconf_readme[] = N_(
39"\n" 39"\n"
40"To change any of these features, highlight it with the cursor\n" 40"To change any of these features, highlight it with the cursor\n"
41"keys and press <Y> to build it in, <M> to make it a module or\n" 41"keys and press <Y> to build it in, <M> to make it a module or\n"
42"<N> to removed it. You may also press the <Space Bar> to cycle\n" 42"<N> to remove it. You may also press the <Space Bar> to cycle\n"
43"through the available options (ie. Y->N->M->Y).\n" 43"through the available options (i.e. Y->N->M->Y).\n"
44"\n" 44"\n"
45"Some additional keyboard hints:\n" 45"Some additional keyboard hints:\n"
46"\n" 46"\n"
47"Menus\n" 47"Menus\n"
48"----------\n" 48"----------\n"
49"o Use the Up/Down arrow keys (cursor keys) to highlight the item\n" 49"o Use the Up/Down arrow keys (cursor keys) to highlight the item you\n"
50" you wish to change or submenu wish to select and press <Enter>.\n" 50" wish to change or the submenu you wish to select and press <Enter>.\n"
51" Submenus are designated by \"--->\", empty ones by \"----\".\n" 51" Submenus are designated by \"--->\", empty ones by \"----\".\n"
52"\n" 52"\n"
53" Shortcut: Press the option's highlighted letter (hotkey).\n" 53" Shortcut: Press the option's highlighted letter (hotkey).\n"
@@ -65,7 +65,7 @@ static const char mconf_readme[] = N_(
65" there is a delayed response which you may find annoying.\n" 65" there is a delayed response which you may find annoying.\n"
66"\n" 66"\n"
67" Also, the <TAB> and cursor keys will cycle between <Select>,\n" 67" Also, the <TAB> and cursor keys will cycle between <Select>,\n"
68" <Exit> and <Help>.\n" 68" <Exit>, <Help>, <Save>, and <Load>.\n"
69"\n" 69"\n"
70"o To get help with an item, use the cursor keys to highlight <Help>\n" 70"o To get help with an item, use the cursor keys to highlight <Help>\n"
71" and press <ENTER>.\n" 71" and press <ENTER>.\n"
@@ -105,7 +105,7 @@ static const char mconf_readme[] = N_(
105"Text Box (Help Window)\n" 105"Text Box (Help Window)\n"
106"--------\n" 106"--------\n"
107"o Use the cursor keys to scroll up/down/left/right. The VI editor\n" 107"o Use the cursor keys to scroll up/down/left/right. The VI editor\n"
108" keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for \n" 108" keys h,j,k,l function here as do <u>, <d>, <SPACE BAR> and <B> for\n"
109" those who are familiar with less and lynx.\n" 109" those who are familiar with less and lynx.\n"
110"\n" 110"\n"
111"o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n" 111"o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
@@ -117,23 +117,21 @@ static const char mconf_readme[] = N_(
117"those who, for various reasons, find it necessary to switch\n" 117"those who, for various reasons, find it necessary to switch\n"
118"between different configurations.\n" 118"between different configurations.\n"
119"\n" 119"\n"
120"At the end of the main menu you will find two options. One is\n" 120"The <Save> button will let you save the current configuration to\n"
121"for saving the current configuration to a file of your choosing.\n" 121"a file of your choosing. Use the <Load> button to load a previously\n"
122"The other option is for loading a previously saved alternate\n" 122"saved alternate configuration.\n"
123"configuration.\n"
124"\n" 123"\n"
125"Even if you don't use alternate configuration files, but you\n" 124"Even if you don't use alternate configuration files, but you find\n"
126"find during a Menuconfig session that you have completely messed\n" 125"during a Menuconfig session that you have completely messed up your\n"
127"up your settings, you may use the \"Load Alternate...\" option to\n" 126"settings, you may use the <Load> button to restore your previously\n"
128"restore your previously saved settings from \".config\" without\n" 127"saved settings from \".config\" without restarting Menuconfig.\n"
129"restarting Menuconfig.\n"
130"\n" 128"\n"
131"Other information\n" 129"Other information\n"
132"-----------------\n" 130"-----------------\n"
133"If you use Menuconfig in an XTERM window make sure you have your\n" 131"If you use Menuconfig in an XTERM window, make sure you have your\n"
134"$TERM variable set to point to a xterm definition which supports color.\n" 132"$TERM variable set to point to an xterm definition which supports\n"
135"Otherwise, Menuconfig will look rather bad. Menuconfig will not\n" 133"color. Otherwise, Menuconfig will look rather bad. Menuconfig will\n"
136"display correctly in a RXVT window because rxvt displays only one\n" 134"not display correctly in an RXVT window because rxvt displays only one\n"
137"intensity of color, bright.\n" 135"intensity of color, bright.\n"
138"\n" 136"\n"
139"Menuconfig will display larger menus on screens or xterms which are\n" 137"Menuconfig will display larger menus on screens or xterms which are\n"
@@ -148,8 +146,8 @@ static const char mconf_readme[] = N_(
148"\n" 146"\n"
149"Optional personality available\n" 147"Optional personality available\n"
150"------------------------------\n" 148"------------------------------\n"
151"If you prefer to have all of the options listed in a single menu, rather\n" 149"If you prefer to have all of the options listed in a single menu,\n"
152"than the default multimenu hierarchy, run the menuconfig with\n" 150"rather than the default multimenu hierarchy, run the menuconfig with\n"
153"MENUCONFIG_MODE environment variable set to single_menu. Example:\n" 151"MENUCONFIG_MODE environment variable set to single_menu. Example:\n"
154"\n" 152"\n"
155"make MENUCONFIG_MODE=single_menu menuconfig\n" 153"make MENUCONFIG_MODE=single_menu menuconfig\n"
@@ -172,7 +170,7 @@ static const char mconf_readme[] = N_(
172" mono => selects colors suitable for monochrome displays\n" 170" mono => selects colors suitable for monochrome displays\n"
173" blackbg => selects a color scheme with black background\n" 171" blackbg => selects a color scheme with black background\n"
174" classic => theme with blue background. The classic look\n" 172" classic => theme with blue background. The classic look\n"
175" bluetitle => a LCD friendly version of classic. (default)\n" 173" bluetitle => an LCD friendly version of classic. (default)\n"
176"\n"), 174"\n"),
177menu_instructions[] = N_( 175menu_instructions[] = N_(
178 "Arrow keys navigate the menu. " 176 "Arrow keys navigate the menu. "
@@ -238,24 +236,24 @@ search_help[] = N_(
238 "Symbol: FOO [=m]\n" 236 "Symbol: FOO [=m]\n"
239 "Type : tristate\n" 237 "Type : tristate\n"
240 "Prompt: Foo bus is used to drive the bar HW\n" 238 "Prompt: Foo bus is used to drive the bar HW\n"
241 " Defined at drivers/pci/Kconfig:47\n"
242 " Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
243 " Location:\n" 239 " Location:\n"
244 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n" 240 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
245 " -> PCI support (PCI [=y])\n" 241 " -> PCI support (PCI [=y])\n"
246 "(1) -> PCI access mode (<choice> [=y])\n" 242 "(1) -> PCI access mode (<choice> [=y])\n"
243 " Defined at drivers/pci/Kconfig:47\n"
244 " Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n"
247 " Selects: LIBCRC32\n" 245 " Selects: LIBCRC32\n"
248 " Selected by: BAR\n" 246 " Selected by: BAR [=n]\n"
249 "-----------------------------------------------------------------\n" 247 "-----------------------------------------------------------------\n"
250 "o The line 'Type:' shows the type of the configuration option for\n" 248 "o The line 'Type:' shows the type of the configuration option for\n"
251 " this symbol (boolean, tristate, string, ...)\n" 249 " this symbol (boolean, tristate, string, ...)\n"
252 "o The line 'Prompt:' shows the text used in the menu structure for\n" 250 "o The line 'Prompt:' shows the text used in the menu structure for\n"
253 " this symbol\n" 251 " this symbol\n"
254 "o The 'Defined at' line tell at what file / line number the symbol\n" 252 "o The 'Defined at' line tells at what file / line number the symbol\n"
255 " is defined\n" 253 " is defined\n"
256 "o The 'Depends on:' line tell what symbols needs to be defined for\n" 254 "o The 'Depends on:' line tells what symbols need to be defined for\n"
257 " this symbol to be visible in the menu (selectable)\n" 255 " this symbol to be visible in the menu (selectable)\n"
258 "o The 'Location:' lines tell where in the menu structure this symbol\n" 256 "o The 'Location:' lines tells where in the menu structure this symbol\n"
259 " is located\n" 257 " is located\n"
260 " A location followed by a [=y] indicates that this is a\n" 258 " A location followed by a [=y] indicates that this is a\n"
261 " selectable menu item - and the current value is displayed inside\n" 259 " selectable menu item - and the current value is displayed inside\n"
@@ -263,9 +261,9 @@ search_help[] = N_(
263 " Press the key in the (#) prefix to jump directly to that\n" 261 " Press the key in the (#) prefix to jump directly to that\n"
264 " location. You will be returned to the current search results\n" 262 " location. You will be returned to the current search results\n"
265 " after exiting this new menu.\n" 263 " after exiting this new menu.\n"
266 "o The 'Selects:' line tell what symbol will be automatically\n" 264 "o The 'Selects:' line tells what symbols will be automatically\n"
267 " selected if this symbol is selected (y or m)\n" 265 " selected if this symbol is selected (y or m)\n"
268 "o The 'Selected by' line tell what symbol has selected this symbol\n" 266 "o The 'Selected by' line tells what symbol has selected this symbol\n"
269 "\n" 267 "\n"
270 "Only relevant lines are shown.\n" 268 "Only relevant lines are shown.\n"
271 "\n\n" 269 "\n\n"
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index c1d53200c306..db1512ae30cc 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -119,9 +119,10 @@ void menu_set_type(int type)
119 sym->type = type; 119 sym->type = type;
120 return; 120 return;
121 } 121 }
122 menu_warn(current_entry, "type of '%s' redefined from '%s' to '%s'", 122 menu_warn(current_entry,
123 sym->name ? sym->name : "<choice>", 123 "ignoring type redefinition of '%s' from '%s' to '%s'",
124 sym_type_name(sym->type), sym_type_name(type)); 124 sym->name ? sym->name : "<choice>",
125 sym_type_name(sym->type), sym_type_name(type));
125} 126}
126 127
127struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep) 128struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)
@@ -583,7 +584,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
583 for (j = 4; --i >= 0; j += 2) { 584 for (j = 4; --i >= 0; j += 2) {
584 menu = submenu[i]; 585 menu = submenu[i];
585 if (head && location && menu == location) 586 if (head && location && menu == location)
586 jump->offset = r->len - 1; 587 jump->offset = strlen(r->s);
587 str_printf(r, "%*c-> %s", j, ' ', 588 str_printf(r, "%*c-> %s", j, ' ',
588 _(menu_get_prompt(menu))); 589 _(menu_get_prompt(menu)));
589 if (menu->sym) { 590 if (menu->sym) {
@@ -597,7 +598,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
597} 598}
598 599
599/* 600/*
600 * get peoperty of type P_SYMBOL 601 * get property of type P_SYMBOL
601 */ 602 */
602static struct property *get_symbol_prop(struct symbol *sym) 603static struct property *get_symbol_prop(struct symbol *sym)
603{ 604{
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 1500c38f0cca..9d3b04b0769c 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -69,6 +69,11 @@ static inline QString qgettext(const QString& str)
69 return QString::fromLocal8Bit(gettext(str.latin1())); 69 return QString::fromLocal8Bit(gettext(str.latin1()));
70} 70}
71 71
72ConfigSettings::ConfigSettings()
73 : QSettings("kernel.org", "qconf")
74{
75}
76
72/** 77/**
73 * Reads a list of integer values from the application settings. 78 * Reads a list of integer values from the application settings.
74 */ 79 */
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index 3715b3e7212c..bde0c6b6f9e8 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -32,6 +32,7 @@ class ConfigMainWindow;
32 32
33class ConfigSettings : public QSettings { 33class ConfigSettings : public QSettings {
34public: 34public:
35 ConfigSettings();
35 Q3ValueList<int> readSizes(const QString& key, bool *ok); 36 Q3ValueList<int> readSizes(const QString& key, bool *ok);
36 bool writeSizes(const QString& key, const Q3ValueList<int>& value); 37 bool writeSizes(const QString& key, const Q3ValueList<int>& value);
37}; 38};
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c
index c9a6775565bf..7caabdb51c64 100644
--- a/scripts/kconfig/symbol.c
+++ b/scripts/kconfig/symbol.c
@@ -1047,7 +1047,7 @@ sym_re_search_free:
1047 * When we check for recursive dependencies we use a stack to save 1047 * When we check for recursive dependencies we use a stack to save
1048 * current state so we can print out relevant info to user. 1048 * current state so we can print out relevant info to user.
1049 * The entries are located on the call stack so no need to free memory. 1049 * The entries are located on the call stack so no need to free memory.
1050 * Note inser() remove() must always match to properly clear the stack. 1050 * Note insert() remove() must always match to properly clear the stack.
1051 */ 1051 */
1052static struct dep_stack { 1052static struct dep_stack {
1053 struct dep_stack *prev, *next; 1053 struct dep_stack *prev, *next;
diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l
index 6555a475453b..1a9f53e535ca 100644
--- a/scripts/kconfig/zconf.l
+++ b/scripts/kconfig/zconf.l
@@ -68,7 +68,6 @@ static void alloc_string(const char *str, int size)
68} 68}
69%} 69%}
70 70
71ws [ \n\t]
72n [A-Za-z0-9_] 71n [A-Za-z0-9_]
73 72
74%% 73%%