diff options
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/Makefile | 1 | ||||
-rw-r--r-- | scripts/kconfig/confdata.c | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index e6499db4c8cc..a90d3cc76bfa 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -74,6 +74,7 @@ help: | |||
74 | @echo ' xconfig - Update current config utilising a QT based front-end' | 74 | @echo ' xconfig - Update current config utilising a QT based front-end' |
75 | @echo ' gconfig - Update current config utilising a GTK based front-end' | 75 | @echo ' gconfig - Update current config utilising a GTK based front-end' |
76 | @echo ' oldconfig - Update current config utilising a provided .config as base' | 76 | @echo ' oldconfig - Update current config utilising a provided .config as base' |
77 | @echo ' silentoldconfig - Same as oldconfig, but quietly' | ||
77 | @echo ' randconfig - New config with random answer to all options' | 78 | @echo ' randconfig - New config with random answer to all options' |
78 | @echo ' defconfig - New config with default answer to all options' | 79 | @echo ' defconfig - New config with default answer to all options' |
79 | @echo ' allmodconfig - New config selecting modules when possible' | 80 | @echo ' allmodconfig - New config selecting modules when possible' |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index a69d8acbf274..69f96b398c22 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -193,8 +193,11 @@ load: | |||
193 | continue; | 193 | continue; |
194 | *p++ = 0; | 194 | *p++ = 0; |
195 | p2 = strchr(p, '\n'); | 195 | p2 = strchr(p, '\n'); |
196 | if (p2) | 196 | if (p2) { |
197 | *p2 = 0; | 197 | *p2-- = 0; |
198 | if (*p2 == '\r') | ||
199 | *p2 = 0; | ||
200 | } | ||
198 | if (def == S_DEF_USER) { | 201 | if (def == S_DEF_USER) { |
199 | sym = sym_find(line + 7); | 202 | sym = sym_find(line + 7); |
200 | if (!sym) { | 203 | if (!sym) { |
@@ -266,6 +269,7 @@ load: | |||
266 | ; | 269 | ; |
267 | } | 270 | } |
268 | break; | 271 | break; |
272 | case '\r': | ||
269 | case '\n': | 273 | case '\n': |
270 | break; | 274 | break; |
271 | default: | 275 | default: |