Browse Source

default ?conf to native arch

  Default is now the native arch, you can start a fresh .config via
  'make ARCH=ia64 menuconfig'.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 14 years ago
parent
commit
6625518cd6

+ 10 - 10
Makefile.in

@@ -62,7 +62,7 @@ ifeq ($(HAVE_DOT_CONFIG),y)
 # on spot to save us from alot of hazzle.
 $(top_builddir)include/bits/uClibc_config.h: $(top_builddir)extra/config/conf $(KCONFIG_CONFIG) $(top_srcdir)extra/scripts/conf-header.sh | $(top_builddir)include/bits $(top_builddir)include/config
 	@$(disp_gen)
-	$(Q)@$< -s $(top_srcdir)extra/Configs/Config.in
+	$(Q)@$< -s $(top_srcdir)extra/Configs/Config.$(ARCH)
 	$(Q)$(top_srcdir)extra/scripts/conf-header.sh $(KCONFIG_CONFIG) > $@
 	$(Q)$(MAKE) headers-y
 
@@ -395,35 +395,35 @@ $(top_builddir)extra/config/conf $(top_builddir)extra/config/mconf: | $(top_buil
 	$(Q)$(MAKE) -C extra/config $(@F)
 
 menuconfig: $(top_builddir)extra/config/mconf
-	$(Q)$(top_builddir)extra/config/mconf extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/mconf extra/Configs/Config.$(ARCH)
 
 config: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf extra/Configs/Config.$(ARCH)
 
 oldconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.$(ARCH)
 
 silentoldconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -s extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -s extra/Configs/Config.$(ARCH)
 
 randconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -r extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -r extra/Configs/Config.$(ARCH)
 
 allyesconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -y extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -y extra/Configs/Config.$(ARCH)
 	$(SED) -i -e "s/^DODEBUG=.*/# DODEBUG is not set/" \
 		-e "s/^DOASSERTS=.*/# DOASSERTS is not set/" \
 		-e "s/^SUPPORT_LD_DEBUG_EARLY=.*/# SUPPORT_LD_DEBUG_EARLY is not set/" \
 		-e "s/^SUPPORT_LD_DEBUG=.*/# SUPPORT_LD_DEBUG is not set/" \
 		-e "s/^UCLIBC_MJN3_ONLY=.*/# UCLIBC_MJN3_ONLY is not set/" \
 		$(KCONFIG_CONFIG)
-	$(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -o extra/Configs/Config.$(ARCH)
 
 allnoconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -n extra/Configs/Config.in
+	$(Q)$(top_builddir)extra/config/conf -n extra/Configs/Config.$(ARCH)
 
 defconfig: $(top_builddir)extra/config/conf
-	$(Q)$(top_builddir)extra/config/conf -d extra/Configs/Config.in \
+	$(Q)$(top_builddir)extra/config/conf -d extra/Configs/Config.$(ARCH) \
 		-D extra/Configs/defconfigs/$(ARCH)
 
 include_clean:

+ 3 - 2
Rules.mak

@@ -63,14 +63,15 @@ STRIP_FLAGS ?= -x -R .note -R .comment
 # Select the compiler needed to build binaries for your development system
 HOSTCC     = gcc
 BUILD_CFLAGS = -Os -Wall
-export ARCH := $(shell uname -m | $(SED) -e s/i.86/i386/ \
+SUBARCH := $(shell uname -m | $(SED) -e s/i.86/i386/ \
 				  -e s/sun.*/sparc/ -e s/sparc.*/sparc/ \
 				  -e s/arm.*/arm/ -e s/sa110/arm/ \
 				  -e s/sh.*/sh/ \
 				  -e s/s390x/s390/ -e s/parisc.*/hppa/ \
 				  -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
 				  -e s/xtensa.*/xtensa/ )
-
+ARCH ?= $(SUBARCH)
+export ARCH
 
 #---------------------------------------------------------
 # Nothing beyond this point should ever be touched by mere

+ 7 - 0
extra/Configs/Config.alpha

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "alpha"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -17,3 +21,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.arm

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "arm"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -134,3 +138,6 @@ config CONFIG_ARM_IWMMXT
 	select ARCH_HAS_MMU
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.avr32

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "avr32"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -29,3 +33,6 @@ endchoice
 config LINKRELAX
 	bool "Enable linker optimizations"
 	default y
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.bfin

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "bfin"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -15,3 +19,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.cris

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "cris"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -35,3 +39,6 @@ config CONFIG_CRISV32
 	bool "CRISv32"
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.e1

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "e1"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -21,3 +25,6 @@ config ARCH_E1
 config ARCH_CFLAGS
 	string
 	default "-mgnu-param"
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.frv

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "frv"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -16,3 +20,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.h8300

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "h8300"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -29,3 +33,6 @@ endchoice
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.hppa

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "hppa"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -18,3 +22,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 9 - 0
extra/Configs/Config.i386

@@ -3,10 +3,16 @@
 # see extra/config/Kconfig-language.txt
 #
 
+
+
 config TARGET_ARCH
 	string
 	default "i386"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -100,3 +106,6 @@ config CONFIG_NEHEMIAH
 	bool "VIA C3-2 (Nehemiah)"
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.i960

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "i960"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -17,3 +21,6 @@ config FORCE_OPTIONS_FOR_ARCH
 config ARCH_CFLAGS
 	string
 	default "-mh -mint32 -fsigned-char"
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.ia64

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "ia64"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -16,3 +20,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 6 - 3
extra/Configs/Config.in.arch

@@ -3,6 +3,12 @@
 # see extra/config/Kconfig-language.txt
 #
 
+config TARGET_SUBARCH
+	string
+	default "e500" if CONFIG_E500
+	default "classic" if CONFIG_CLASSIC
+	default "sh4" if CONFIG_SH4
+	default ""
 
 #
 # Binary format
@@ -200,6 +206,3 @@ config UCLIBC_UCLINUX_BROKEN_MUNMAP
 	depends on !ARCH_USE_MMU
 	default y
 
-config HAVE_DOT_CONFIG
-	bool
-	default y

+ 114 - 0
extra/Configs/Config.in.arches

@@ -0,0 +1,114 @@
+#
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
+#
+
+mainmenu "uClibc C Library Configuration"
+
+choice
+	prompt "Target Architecture"
+	default TARGET_alpha if TARGET_ARCH = "alpha"
+	default TARGET_arm if TARGET_ARCH = "arm"
+	default TARGET_avr32 if TARGET_ARCH = "avr32"
+	default TARGET_bfin if TARGET_ARCH = "bfin"
+	default TARGET_cris if TARGET_ARCH = "cris"
+	default TARGET_e1 if TARGET_ARCH = "e1"
+	default TARGET_frv if TARGET_ARCH = "frv"
+	default TARGET_h8300 if TARGET_ARCH = "h8300"
+	default TARGET_hppa if TARGET_ARCH = "hppa"
+	default TARGET_i386 if TARGET_ARCH = "i386"
+	default TARGET_i960 if TARGET_ARCH = "i960"
+	default TARGET_ia64 if TARGET_ARCH = "ia64"
+	default TARGET_m68k if TARGET_ARCH = "m68k"
+	default TARGET_microblaze if TARGET_ARCH = "microblaze"
+	default TARGET_mips if TARGET_ARCH = "mips"
+	default TARGET_nios if TARGET_ARCH = "nios"
+	default TARGET_nios2 if TARGET_ARCH = "nios2"
+	default TARGET_powerpc if TARGET_ARCH = "powerpc"
+	default TARGET_sh if TARGET_ARCH = "sh"
+	default TARGET_sh64 if TARGET_ARCH = "sh64"
+	default TARGET_sparc if TARGET_ARCH = "sparc"
+	default TARGET_v850 if TARGET_ARCH = "v850"
+	default TARGET_vax if TARGET_ARCH = "vax"
+	default TARGET_x86_64 if TARGET_ARCH = "x86_64"
+	default TARGET_xtensa if TARGET_ARCH = "xtensa"
+	help
+	  The architecture of your target.
+
+config TARGET_alpha
+	bool "alpha"
+
+config TARGET_arm
+	bool "arm"
+
+config TARGET_avr32
+	bool "avr32"
+
+config TARGET_bfin
+	bool "bfin"
+
+config TARGET_cris
+	bool "cris"
+
+config TARGET_e1
+	bool "e1 (BROKEN)"
+
+config TARGET_frv
+	bool "frv (BROKEN)"
+
+config TARGET_h8300
+	bool "h8300 (BROKEN)"
+
+config TARGET_hppa
+	bool "hppa"
+
+config TARGET_i386
+	bool "i386"
+
+config TARGET_i960
+	bool "i960 (BROKEN)"
+
+config TARGET_ia64
+	bool "ia64"
+
+config TARGET_m68k
+	bool "m68k"
+
+config TARGET_microblaze
+	bool "microblaze (BROKEN)"
+
+config TARGET_mips
+	bool "mips"
+
+config TARGET_nios
+	bool "nios"
+
+config TARGET_nios2
+	bool "nios2"
+
+config TARGET_powerpc
+	bool "powerpc"
+
+config TARGET_sh
+	bool "superh"
+
+config TARGET_sh64
+	bool "sh64"
+
+config TARGET_sparc
+	bool "sparc"
+
+config TARGET_v850
+	bool "v850 (BROKEN)"
+
+config TARGET_vax
+	bool "vax"
+
+config TARGET_x86_64
+	bool "x86_64"
+
+config TARGET_xtensa
+	bool "xtensa"
+
+endchoice
+

+ 3 - 198
extra/Configs/Config.in → extra/Configs/Config.in.common

@@ -3,204 +3,6 @@
 # see extra/config/Kconfig-language.txt
 #
 
-mainmenu "uClibc C Library Configuration"
-
-choice
-	prompt "Target Architecture"
-	help
-	  The architecture of your target.
-
-config TARGET_alpha
-	bool "alpha"
-
-config TARGET_arm
-	bool "arm"
-
-config TARGET_avr32
-	bool "avr32"
-
-config TARGET_bfin
-	bool "bfin"
-
-config TARGET_cris
-	bool "cris"
-
-config TARGET_e1
-	bool "e1 (BROKEN)"
-
-config TARGET_frv
-	bool "frv (BROKEN)"
-
-config TARGET_h8300
-	bool "h8300 (BROKEN)"
-
-config TARGET_hppa
-	bool "hppa"
-
-config TARGET_i386
-	bool "i386"
-
-config TARGET_i960
-	bool "i960 (BROKEN)"
-
-config TARGET_ia64
-	bool "ia64"
-
-config TARGET_m68k
-	bool "m68k"
-
-config TARGET_microblaze
-	bool "microblaze (BROKEN)"
-
-config TARGET_mips
-	bool "mips"
-
-config TARGET_nios
-	bool "nios"
-
-config TARGET_nios2
-	bool "nios2"
-
-config TARGET_powerpc
-	bool "powerpc"
-
-config TARGET_sh
-	bool "superh"
-
-config TARGET_sh64
-	bool "sh64"
-
-config TARGET_sparc
-	bool "sparc"
-
-config TARGET_v850
-	bool "v850 (BROKEN)"
-
-config TARGET_vax
-	bool "vax"
-
-config TARGET_x86_64
-	bool "x86_64"
-
-config TARGET_xtensa
-	bool "xtensa"
-
-endchoice
-
-
-menu "Target Architecture Features and Options"
-
-if TARGET_alpha
-source "extra/Configs/Config.alpha"
-endif
-
-if TARGET_arm
-source "extra/Configs/Config.arm"
-endif
-
-if TARGET_avr32
-source "extra/Configs/Config.avr32"
-endif
-
-if TARGET_bfin
-source "extra/Configs/Config.bfin"
-endif
-
-if TARGET_cris
-source "extra/Configs/Config.cris"
-endif
-
-if TARGET_e1
-source "extra/Configs/Config.e1"
-endif
-
-if TARGET_frv
-source "extra/Configs/Config.frv"
-endif
-
-if TARGET_h8300
-source "extra/Configs/Config.h8300"
-endif
-
-if TARGET_hppa
-source "extra/Configs/Config.hppa"
-endif
-
-if TARGET_i386
-source "extra/Configs/Config.i386"
-endif
-
-if TARGET_i960
-source "extra/Configs/Config.i960"
-endif
-
-if TARGET_ia64
-source "extra/Configs/Config.ia64"
-endif
-
-if TARGET_m68k
-source "extra/Configs/Config.m68k"
-endif
-
-if TARGET_nios
-source "extra/Configs/Config.nios"
-endif
-
-if TARGET_nios2
-source "extra/Configs/Config.nios2"
-endif
-
-if TARGET_microblaze
-source "extra/Configs/Config.microblaze"
-endif
-
-if TARGET_mips
-source "extra/Configs/Config.mips"
-endif
-
-if TARGET_powerpc
-source "extra/Configs/Config.powerpc"
-endif
-
-if TARGET_sh
-source "extra/Configs/Config.sh"
-endif
-
-if TARGET_sh64
-source "extra/Configs/Config.sh64"
-endif
-
-if TARGET_sparc
-source "extra/Configs/Config.sparc"
-endif
-
-if TARGET_v850
-source "extra/Configs/Config.v850"
-endif
-
-if TARGET_vax
-source "extra/Configs/Config.vax"
-endif
-
-if TARGET_x86_64
-source "extra/Configs/Config.x86_64"
-endif
-
-if TARGET_xtensa
-source "extra/Configs/Config.xtensa"
-endif
-
-config TARGET_SUBARCH
-	string
-	default "e500" if CONFIG_E500
-	default "classic" if CONFIG_CLASSIC
-	default "sh4" if CONFIG_SH4
-	default ""
-
-source "extra/Configs/Config.in.arch"
-
-endmenu
-
 menu "General Library Settings"
 
 config HAVE_NO_PIC
@@ -2179,3 +1981,6 @@ config UCLIBC_MJN3_ONLY
 	  Most people will answer N.
 
 endmenu
+
+config HAVE_DOT_CONFIG
+	def_bool y

+ 7 - 0
extra/Configs/Config.m68k

@@ -7,7 +7,14 @@ config TARGET_ARCH
 	string
 	default "m68k"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
 	select ARCH_BIG_ENDIAN
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.microblaze

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "microblaze"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -19,3 +23,6 @@ config ARCH_CFLAGS
 config CROSS
 	string
 	default "mb-"
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.mips

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "mips"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -75,3 +79,6 @@ config CONFIG_MIPS_ISA_MIPS64
 	bool "MIPS64"
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.nios

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "nios"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -21,3 +25,6 @@ config ARCH_CFLAGS
 
 config CROSS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.nios2

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "nios2"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -20,3 +24,6 @@ config ARCH_CFLAGS
 
 config CROSS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.powerpc

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "powerpc"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -36,3 +40,6 @@ config CONFIG_E500
 	  e500 v1 and v2 core.
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 10 - 3
extra/Configs/Config.sh

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "sh"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -50,6 +54,9 @@ config CONFIG_SH4
 endchoice
 
 config ARCH_HAS_BWD_MEMCPY
-       bool
-       default y
-       depends on CONFIG_SH4
+	bool
+	default y
+	depends on CONFIG_SH4
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.sh64

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "sh64"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -33,3 +37,6 @@ config CONFIG_SH5
 	bool "SH5"
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.sparc

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "sparc"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -39,3 +43,6 @@ config CONFIG_SPARC_V9B
 	bool "SPARC v9b"
 
 endchoice
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.v850

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "v850"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -20,3 +24,6 @@ config ARCH_CFLAGS
 config CROSS
 	string
 	default "v850e-elf-"
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.vax

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "vax"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -22,3 +26,6 @@ config ARCH_LDFLAGS
 config CROSS
 	string
 	default "vax-linux-uclibc-"
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 7 - 0
extra/Configs/Config.x86_64

@@ -7,6 +7,10 @@ config TARGET_ARCH
 	string
 	default "x86_64"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config FORCE_OPTIONS_FOR_ARCH
 	bool
 	default y
@@ -15,3 +19,6 @@ config FORCE_OPTIONS_FOR_ARCH
 
 config ARCH_CFLAGS
 	string
+
+endmenu
+source "extra/Configs/Config.in.common"

+ 6 - 0
extra/Configs/Config.xtensa

@@ -7,6 +7,12 @@ config TARGET_ARCH
 	string
 	default "xtensa"
 
+source "extra/Configs/Config.in.arches"
+menu "Target Architecture Features and Options"
+source "extra/Configs/Config.in.arch"
+
 config ARCH_CFLAGS
 	string
 
+endmenu
+source "extra/Configs/Config.in.common"

+ 1 - 1
extra/scripts/MAKEALL

@@ -71,7 +71,7 @@ mark_arch()
 if [ -z "$*" ] ; then
 	set -- $(awk \
 		'$0 ~ /^config TARGET_/ { sub("TARGET_",""); print $NF }' \
-		extra/Configs/Config.in | grep -v SUBARCH)
+		extra/Configs/Config.in.arches | grep -v SUBARCH)
 fi
 pass=""
 fail=""