Skip to content

Commit

Permalink
Merge branch 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/…
Browse files Browse the repository at this point in the history
…lacombar/linux-2.6 into kbuild/kconfig

* 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6:
  kbuild: migrate all arch to the kconfig mainmenu upgrade
  kconfig: expand file names
  kconfig: use the file's name of sourced file
  kconfig: constify file name
  kconfig: don't emit warning upon rootmenu's prompt redefinition
  kconfig: replace KERNELVERSION usage by the mainmenu's prompt
  kconfig: delay gconf window initialization
  kconfig: expand by default the rootmenu's prompt
  kconfig: add a symbol string expansion helper
  kconfig: regen parser
  kconfig: implement the `mainmenu' directive
  kconfig: allow PACKAGE to be defined on the compiler's command-line
  kconfig: rephrase help texts/comments not to include the package name
  kconfig: allow build-time definition of the internal config prefix
  kconfig: rephrase help text not to mention the internal prefix
  kconfig: replace a `switch()' statement by a more flexible `if()' statement
  • Loading branch information
Michal Marek committed Sep 27, 2010
2 parents 8c41e5e + 838a2e5 commit 0455029
Show file tree
Hide file tree
Showing 42 changed files with 501 additions and 560 deletions.
3 changes: 2 additions & 1 deletion Documentation/kbuild/kconfig-language.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ mainmenu:
"mainmenu" <prompt>

This sets the config program's title bar if the config program chooses
to use it.
to use it. It should be placed at the top of the configuration, before any
other statement.


Kconfig hints
Expand Down
11 changes: 11 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"

config SRCARCH
string
option env="SRCARCH"

source "arch/$SRCARCH/Kconfig"
4 changes: 0 additions & 4 deletions arch/alpha/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
config ALPHA
bool
default y
Expand Down
7 changes: 0 additions & 7 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux Kernel Configuration"

config ARM
bool
default y
Expand Down
7 changes: 0 additions & 7 deletions arch/avr32/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux Kernel Configuration"

config AVR32
def_bool y
# With EMBEDDED=n, we get lots of stuff automatically selected
Expand Down
7 changes: 0 additions & 7 deletions arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Blackfin Kernel Configuration"

config SYMBOL_PREFIX
string
default "_"
Expand Down
7 changes: 0 additions & 7 deletions arch/cris/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see the Configure script.
#

mainmenu "Linux/CRIS Kernel Configuration"

config MMU
bool
default y
Expand Down
6 changes: 0 additions & 6 deletions arch/frv/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
config FRV
bool
default y
Expand Down Expand Up @@ -64,8 +60,6 @@ config HZ
int
default 1000

mainmenu "Fujitsu FR-V Kernel Configuration"

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down
7 changes: 0 additions & 7 deletions arch/h8300/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "uClinux/h8300 (w/o MMU) Kernel Configuration"

config H8300
bool
default y
Expand Down
7 changes: 0 additions & 7 deletions arch/ia64/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "IA-64 Linux Kernel Configuration"

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down
7 changes: 0 additions & 7 deletions arch/m32r/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux/M32R Kernel Configuration"

config M32R
bool
default y
Expand Down
6 changes: 0 additions & 6 deletions arch/m68k/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
config M68K
bool
default y
Expand Down Expand Up @@ -65,8 +61,6 @@ config GENERIC_TIME
config ARCH_USES_GETTIMEOFFSET
def_bool y

mainmenu "Linux/68k Kernel Configuration"

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down
7 changes: 0 additions & 7 deletions arch/m68knommu/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "uClinux/68k (w/o MMU) Kernel Configuration"

config M68K
bool
default y
Expand Down
5 changes: 0 additions & 5 deletions arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.

mainmenu "Linux/Microblaze Kernel Configuration"

config MICROBLAZE
def_bool y
select HAVE_MEMBLOCK
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ config MIPS
select HAVE_FUNCTION_GRAPH_TRACER
select RTC_LIB if !MACH_LOONGSON

mainmenu "Linux/MIPS Kernel Configuration"

menu "Machine selection"

config ZONE_DMA
Expand Down
9 changes: 0 additions & 9 deletions arch/mn10300/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux Kernel Configuration"

config MN10300
def_bool y
select HAVE_OPROFILE
Expand Down Expand Up @@ -69,8 +62,6 @@ config HZ
int
default 1000

mainmenu "Matsushita MN10300/AM33 Kernel Configuration"

source "init/Kconfig"

source "kernel/Kconfig.freezer"
Expand Down
7 changes: 0 additions & 7 deletions arch/parisc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux/PA-RISC Kernel Configuration"

config PARISC
def_bool y
select HAVE_IDE
Expand Down
6 changes: 0 additions & 6 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux/PowerPC Kernel Configuration"

source "arch/powerpc/platforms/Kconfig.cputype"

config PPC32
Expand Down
7 changes: 0 additions & 7 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

config SCHED_MC
def_bool y
depends on SMP
Expand Down Expand Up @@ -78,8 +73,6 @@ config VIRT_CPU_ACCOUNTING
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
def_bool y

mainmenu "Linux Kernel Configuration"

config S390
def_bool y
select USE_GENERIC_SMP_HELPERS if SMP
Expand Down
5 changes: 0 additions & 5 deletions arch/score/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.

mainmenu "Linux/SCORE Kernel Configuration"

menu "Machine selection"

choice
Expand Down
7 changes: 0 additions & 7 deletions arch/sh/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux/SuperH Kernel Configuration"

config SUPERH
def_bool y
select EMBEDDED
Expand Down
6 changes: 0 additions & 6 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux/SPARC Kernel Configuration"

config 64BIT
bool "64-bit kernel" if ARCH = "sparc"
default ARCH = "sparc64"
Expand Down
2 changes: 0 additions & 2 deletions arch/um/Kconfig.common
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ config MMU
config NO_IOMEM
def_bool y

mainmenu "Linux/Usermode Kernel Configuration"

config ISA
bool

Expand Down
3 changes: 0 additions & 3 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# x86 configuration
mainmenu "Linux Kernel Configuration for x86"

# Select 32 or 64 bit
config 64BIT
bool "64-bit kernel" if ARCH = "x86"
Expand Down
5 changes: 0 additions & 5 deletions arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.

mainmenu "Linux/Xtensa Kernel Configuration"

config FRAME_POINTER
def_bool n

Expand Down
2 changes: 1 addition & 1 deletion scripts/kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-c
ifdef KBUILD_KCONFIG
Kconfig := $(KBUILD_KCONFIG)
else
Kconfig := arch/$(SRCARCH)/Kconfig
Kconfig := Kconfig
endif

xconfig: $(obj)/qconf
Expand Down
13 changes: 6 additions & 7 deletions scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static void check_conf(struct menu *menu)
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
if (input_mode == listnewconfig) {
if (sym->name && !sym_is_choice_value(sym)) {
printf("CONFIG_%s\n", sym->name);
printf("%s%s\n", CONFIG_, sym->name);
}
} else if (input_mode != oldnoconfig) {
if (!conf_cnt++)
Expand Down Expand Up @@ -508,8 +508,7 @@ int main(int ac, char **av)
name = conf_get_configname();
if (stat(name, &tmpstat)) {
fprintf(stderr, _("***\n"
"*** You have not yet configured your kernel!\n"
"*** (missing kernel config file \"%s\")\n"
"*** Configuration file \"%s\" not found!\n"
"***\n"
"*** Please run some configurator (e.g. \"make oldconfig\" or\n"
"*** \"make menuconfig\" or \"make xconfig\").\n"
Expand Down Expand Up @@ -571,7 +570,7 @@ int main(int ac, char **av)
name = getenv("KCONFIG_NOSILENTUPDATE");
if (name && *name) {
fprintf(stderr,
_("\n*** Kernel configuration requires explicit update.\n\n"));
_("\n*** The configuration requires explicit update.\n\n"));
return 1;
}
}
Expand Down Expand Up @@ -623,11 +622,11 @@ int main(int ac, char **av)
* All other commands are only used to generate a config.
*/
if (conf_get_changed() && conf_write(NULL)) {
fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
exit(1);
}
if (conf_write_autoconf()) {
fprintf(stderr, _("\n*** Error during update of the kernel configuration.\n\n"));
fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
return 1;
}
} else if (input_mode == savedefconfig) {
Expand All @@ -638,7 +637,7 @@ int main(int ac, char **av)
}
} else if (input_mode != listnewconfig) {
if (conf_write(NULL)) {
fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
exit(1);
}
}
Expand Down
Loading

0 comments on commit 0455029

Please sign in to comment.