kconfig: move soc selection to ZEPHYR_BASE/soc/
Rather than do that for each architecture, source SoC Kconfigs where the code is maintained, under ZEPHYR_BASE/soc. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
66b524a62a
commit
abcf2ad5a8
10 changed files with 16 additions and 86 deletions
|
@ -20,6 +20,10 @@ source "$(BOARD_DIR)/Kconfig.defconfig"
|
||||||
|
|
||||||
source "soc/$(ARCH)/*/Kconfig.defconfig"
|
source "soc/$(ARCH)/*/Kconfig.defconfig"
|
||||||
|
|
||||||
|
source "boards/Kconfig"
|
||||||
|
|
||||||
|
source "soc/Kconfig"
|
||||||
|
|
||||||
source "arch/Kconfig"
|
source "arch/Kconfig"
|
||||||
|
|
||||||
source "kernel/Kconfig"
|
source "kernel/Kconfig"
|
||||||
|
|
|
@ -11,11 +11,9 @@
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
# Include these first so that any properties (e.g. defaults) below can be
|
||||||
# overriden (by defining symbols in multiple locations)
|
# overriden (by defining symbols in multiple locations)
|
||||||
|
|
||||||
source "boards/Kconfig"
|
|
||||||
# Note: $ARCH might be a glob pattern
|
# Note: $ARCH might be a glob pattern
|
||||||
source "arch/$(ARCH)/Kconfig"
|
source "arch/$(ARCH)/Kconfig"
|
||||||
|
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Architecture"
|
prompt "Architecture"
|
||||||
default X86
|
default X86
|
||||||
|
|
|
@ -6,21 +6,9 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "ARC SoC Selection"
|
|
||||||
depends on ARC
|
|
||||||
|
|
||||||
source "soc/arc/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
|
|
||||||
menu "ARC Options"
|
menu "ARC Options"
|
||||||
depends on ARC
|
depends on ARC
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
source "soc/arc/*/Kconfig"
|
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
default "arc"
|
default "arc"
|
||||||
|
|
||||||
|
|
|
@ -6,23 +6,10 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "ARM SoC Selection"
|
|
||||||
default SOC_SERIES_KINETIS_K6X
|
|
||||||
depends on ARM
|
|
||||||
|
|
||||||
source "soc/arm/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "ARM Options"
|
menu "ARM Options"
|
||||||
depends on ARM
|
depends on ARM
|
||||||
|
|
||||||
menu "SoC Configuration"
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
source "soc/arm/*/Kconfig"
|
|
||||||
endmenu
|
|
||||||
|
|
||||||
source "arch/arm/core/Kconfig"
|
source "arch/arm/core/Kconfig"
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
|
|
|
@ -4,21 +4,9 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Nios II configuration selection"
|
|
||||||
depends on NIOS2
|
|
||||||
source "soc/nios2/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "Nios II Options"
|
menu "Nios II Options"
|
||||||
depends on NIOS2
|
depends on NIOS2
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
#
|
|
||||||
# (No SoC-specific Kconfig files as of writing, hence the optional source.)
|
|
||||||
osource "soc/nios2/*/Kconfig"
|
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
string
|
string
|
||||||
default "nios2"
|
default "nios2"
|
||||||
|
|
|
@ -6,22 +6,9 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "POSIX Configuration Selection"
|
|
||||||
depends on ARCH_POSIX
|
|
||||||
|
|
||||||
source "soc/posix/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "POSIX (native) Options"
|
menu "POSIX (native) Options"
|
||||||
depends on ARCH_POSIX
|
depends on ARCH_POSIX
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
#
|
|
||||||
# (No SoC-specific Kconfig files as of writing, hence the optional source.)
|
|
||||||
osource "soc/posix/*/Kconfig"
|
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
default "posix"
|
default "posix"
|
||||||
|
|
||||||
|
|
|
@ -4,19 +4,9 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "RISCV32 configuration selection"
|
|
||||||
depends on RISCV32
|
|
||||||
source "soc/riscv32/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "RISCV32 Options"
|
menu "RISCV32 Options"
|
||||||
depends on RISCV32
|
depends on RISCV32
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
source "soc/riscv32/*/Kconfig"
|
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
string
|
string
|
||||||
default "riscv32"
|
default "riscv32"
|
||||||
|
|
|
@ -5,21 +5,9 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "x86 SoC Selection"
|
|
||||||
depends on X86
|
|
||||||
|
|
||||||
source "soc/x86/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "X86 Architecture Options"
|
menu "X86 Architecture Options"
|
||||||
depends on X86
|
depends on X86
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
source "soc/x86/*/Kconfig"
|
|
||||||
|
|
||||||
config ARCH
|
config ARCH
|
||||||
default "x86"
|
default "x86"
|
||||||
|
|
||||||
|
|
|
@ -3,23 +3,11 @@
|
||||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "XTENSA core Selection"
|
|
||||||
depends on XTENSA
|
|
||||||
source "soc/xtensa/*/Kconfig.soc"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
menu "XTENSA Options"
|
menu "XTENSA Options"
|
||||||
depends on XTENSA
|
depends on XTENSA
|
||||||
|
|
||||||
menu "Specific core configuration"
|
menu "Specific core configuration"
|
||||||
|
|
||||||
# Include these first so that any properties (e.g. defaults) below can be
|
|
||||||
# overriden (by defining symbols in multiple locations)
|
|
||||||
#
|
|
||||||
# (No SoC-specific Kconfig files as of writing, hence the optional source.)
|
|
||||||
osource "soc/xtensa/*/Kconfig"
|
|
||||||
|
|
||||||
config IRQ_OFFLOAD_INTNUM
|
config IRQ_OFFLOAD_INTNUM
|
||||||
int "IRQ offload SW interrupt index"
|
int "IRQ offload SW interrupt index"
|
||||||
help
|
help
|
||||||
|
|
12
soc/Kconfig
Normal file
12
soc/Kconfig
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "SoC/CPU/Configuration Selection"
|
||||||
|
|
||||||
|
source "soc/$ENV_VAR_ARCH/*/Kconfig.soc"
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
menu "Hardware Configuration"
|
||||||
|
osource "soc/$ENV_VAR_ARCH/*/Kconfig"
|
||||||
|
|
||||||
|
endmenu
|
Loading…
Add table
Add a link
Reference in a new issue