diff options
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/confdata.c | 38 | ||||
-rw-r--r-- | scripts/kconfig/mconf.c | 2 | ||||
-rw-r--r-- | scripts/kconfig/nconf.c | 2 |
3 files changed, 4 insertions, 38 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 0586085136d1..52577f052bc1 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -540,35 +540,6 @@ static struct conf_printer header_printer_cb = | |||
540 | }; | 540 | }; |
541 | 541 | ||
542 | /* | 542 | /* |
543 | * Generate the __enabled_CONFIG_* and __enabled_CONFIG_*_MODULE macros for | ||
544 | * use by the IS_{ENABLED,BUILTIN,MODULE} macros. The _MODULE variant is | ||
545 | * generated even for booleans so that the IS_ENABLED() macro works. | ||
546 | */ | ||
547 | static void | ||
548 | header_print__enabled_symbol(FILE *fp, struct symbol *sym, const char *value, void *arg) | ||
549 | { | ||
550 | |||
551 | switch (sym->type) { | ||
552 | case S_BOOLEAN: | ||
553 | case S_TRISTATE: { | ||
554 | fprintf(fp, "#define __enabled_" CONFIG_ "%s %d\n", | ||
555 | sym->name, (*value == 'y')); | ||
556 | fprintf(fp, "#define __enabled_" CONFIG_ "%s_MODULE %d\n", | ||
557 | sym->name, (*value == 'm')); | ||
558 | break; | ||
559 | } | ||
560 | default: | ||
561 | break; | ||
562 | } | ||
563 | } | ||
564 | |||
565 | static struct conf_printer header__enabled_printer_cb = | ||
566 | { | ||
567 | .print_symbol = header_print__enabled_symbol, | ||
568 | .print_comment = header_print_comment, | ||
569 | }; | ||
570 | |||
571 | /* | ||
572 | * Tristate printer | 543 | * Tristate printer |
573 | * | 544 | * |
574 | * This printer is used when generating the `include/config/tristate.conf' file. | 545 | * This printer is used when generating the `include/config/tristate.conf' file. |
@@ -949,16 +920,11 @@ int conf_write_autoconf(void) | |||
949 | conf_write_heading(out_h, &header_printer_cb, NULL); | 920 | conf_write_heading(out_h, &header_printer_cb, NULL); |
950 | 921 | ||
951 | for_all_symbols(i, sym) { | 922 | for_all_symbols(i, sym) { |
952 | if (!sym->name) | ||
953 | continue; | ||
954 | |||
955 | sym_calc_value(sym); | 923 | sym_calc_value(sym); |
956 | 924 | if (!(sym->flags & SYMBOL_WRITE) || !sym->name) | |
957 | conf_write_symbol(out_h, sym, &header__enabled_printer_cb, NULL); | ||
958 | |||
959 | if (!(sym->flags & SYMBOL_WRITE)) | ||
960 | continue; | 925 | continue; |
961 | 926 | ||
927 | /* write symbol to auto.conf, tristate and header files */ | ||
962 | conf_write_symbol(out, sym, &kconfig_printer_cb, (void *)1); | 928 | conf_write_symbol(out, sym, &kconfig_printer_cb, (void *)1); |
963 | 929 | ||
964 | conf_write_symbol(tristate, sym, &tristate_printer_cb, (void *)1); | 930 | conf_write_symbol(tristate, sym, &tristate_printer_cb, (void *)1); |
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 2c6286c0bc1a..f606738d421d 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -240,7 +240,7 @@ search_help[] = N_( | |||
240 | "Defined at drivers/pci/Kconfig:47\n" | 240 | "Defined at drivers/pci/Kconfig:47\n" |
241 | "Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n" | 241 | "Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n" |
242 | "Location:\n" | 242 | "Location:\n" |
243 | " -> Bus options (PCI, PCMCIA, EISA, MCA, ISA)\n" | 243 | " -> Bus options (PCI, PCMCIA, EISA, ISA)\n" |
244 | " -> PCI support (PCI [=y])\n" | 244 | " -> PCI support (PCI [=y])\n" |
245 | " -> PCI access mode (<choice> [=y])\n" | 245 | " -> PCI access mode (<choice> [=y])\n" |
246 | "Selects: LIBCRC32\n" | 246 | "Selects: LIBCRC32\n" |
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 73070cb0b6de..8c0eb65978c9 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c | |||
@@ -223,7 +223,7 @@ search_help[] = N_( | |||
223 | "Defined at drivers/pci/Kconfig:47\n" | 223 | "Defined at drivers/pci/Kconfig:47\n" |
224 | "Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n" | 224 | "Depends on: X86_LOCAL_APIC && X86_IO_APIC || IA64\n" |
225 | "Location:\n" | 225 | "Location:\n" |
226 | " -> Bus options (PCI, PCMCIA, EISA, MCA, ISA)\n" | 226 | " -> Bus options (PCI, PCMCIA, EISA, ISA)\n" |
227 | " -> PCI support (PCI [ = y])\n" | 227 | " -> PCI support (PCI [ = y])\n" |
228 | " -> PCI access mode (<choice> [ = y])\n" | 228 | " -> PCI access mode (<choice> [ = y])\n" |
229 | "Selects: LIBCRC32\n" | 229 | "Selects: LIBCRC32\n" |