From 3ae5d713ef44977fec0484f4d8e8976fbb84824b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 26 May 2015 10:31:43 -0400 Subject: [PATCH] Kconfig: make architecture kconfig independent Change-Id: I242cb49d11a8131054730059a07154031e0035dd Signed-off-by: Anas Nashif --- Kconfig | 15 +++++++++++++++ arch/x86/Kconfig | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/Kconfig b/Kconfig index 4f6073d632b..6a52de4032f 100644 --- a/Kconfig +++ b/Kconfig @@ -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" diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5368c7558b5..3876ae5b583 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -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"