Kconfig: make architecture kconfig independent

Change-Id: I242cb49d11a8131054730059a07154031e0035dd

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-05-26 10:31:43 -04:00
parent 19e17d47e6
commit 3ae5d713ef
2 changed files with 31 additions and 0 deletions

15
Kconfig
View file

@ -31,9 +31,24 @@
#
mainmenu "Tiny Mountain/$SRCARCH Configuration"
config SRCARCH
string
option env="SRCARCH"
source "arch/$SRCARCH/Kconfig"
config ARCH
string
option env="ARCH"
config KERNELVERSION
string
option env="KERNELVERSION"
config DEFCONFIG_LIST
string
option defconfig_list
default "$ARCH_DEFCONFIG"
default "arch/$ARCH/defconfig"

View file

@ -30,8 +30,19 @@
# POSSIBILITY OF SUCH DAMAGE.
#
config X86_32
def_bool y
config ARCH_DEFCONFIG
string
default "arch/x86/defconfig" if X86_32
source "kernel/Kconfig"
source "misc/Kconfig"
source "arch/x86/core/Kconfig"
source "arch/x86/bsp/Kconfig"
menu "Floating Point Options"
@ -149,4 +160,9 @@ source "arch/x86/quark/Kconfig"
endif
source "arch/x86/timer/Kconfig"
source "arch/x86/interrupt_controller/Kconfig"
source "drivers/Kconfig"
source "net/Kconfig"