Skip to content

Commit

Permalink
Kconfig: make architecture kconfig independent
Browse files Browse the repository at this point in the history
Change-Id: I242cb49d11a8131054730059a07154031e0035dd

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Feb 6, 2016
1 parent 19e17d4 commit 3ae5d71
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
16 changes: 16 additions & 0 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"

0 comments on commit 3ae5d71

Please sign in to comment.