# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

choice ADK_TARGET_CPU
prompt "CPU type"
depends on ADK_TARGET_TOOLCHAIN && \
	( ADK_TARGET_ARCH_CRIS \
	|| ADK_TARGET_ARCH_AARCH64 \
	|| ADK_TARGET_ARCH_ARC \
	|| ADK_TARGET_ARCH_ARM \
	|| ADK_TARGET_ARCH_BFIN \
	|| ADK_TARGET_ARCH_M68K \
	|| ADK_TARGET_ARCH_X86 )

config ADK_TARGET_CPU_ARC_ARC700
	bool "ARC700 (ARCv1)"
	select ADK_CPU_ARC700
	depends on ADK_TARGET_ARCH_ARC

config ADK_TARGET_CPU_ARC_ARC_HS
	bool "ARC HS (ARCv2)"
	select ADK_CPU_ARC_HS
	depends on ADK_TARGET_ARCH_ARC

config ADK_TARGET_CPU_ARM_CORTEX_A53
        bool "cortex-a53"
        select ADK_CPU_CORTEX_A53
	depends on ADK_TARGET_ARCH_AARCH64

config ADK_TARGET_CPU_ARM_CORTEX_A57
        bool "cortex-a57"
        select ADK_CPU_CORTEX_A57
	depends on ADK_TARGET_ARCH_AARCH64

config ADK_TARGET_CPU_ARM_CORTEX_A9
        bool "cortex-a9"
        select ADK_CPU_CORTEX_A9
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_A8
        bool "cortex-a8"
        select ADK_CPU_CORTEX_A8
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_A7
        bool "cortex-a7"
        select ADK_CPU_CORTEX_A7
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_A5
        bool "cortex-a5"
        select ADK_CPU_CORTEX_A5
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_A15
        bool "cortex-a15"
        select ADK_CPU_CORTEX_A15
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_A17
        bool "cortex-a17"
        select ADK_CPU_CORTEX_A17
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_M4
	bool "cortex-m4"
	select ADK_CPU_CORTEX_M4
	select ADK_TARGET_ARCH_ARM_WITH_THUMB
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_CORTEX_M3
	bool "cortex-m3"
	select ADK_CPU_CORTEX_M3
	select ADK_TARGET_ARCH_ARM_WITH_THUMB
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_ARM1176JZF_S
        bool "arm1176jzf-s"
        select ADK_CPU_ARM1176JZF_S
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_ARM926EJ_S
        bool "arm926ej-s"
        select ADK_CPU_ARM926EJ_S
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_ARM_XSCALE
        bool "xscale"
        select ADK_CPU_XSCALE
	depends on ADK_TARGET_ARCH_ARM

config ADK_TARGET_CPU_BFIN_BF512
        bool "bf512"
        select ADK_CPU_BF512
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF514
        bool "bf514"
        select ADK_CPU_BF514
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF516
        bool "bf516"
        select ADK_CPU_BF516
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF518
        bool "bf518"
        select ADK_CPU_BF518
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF522
        bool "bf522"
        select ADK_CPU_BF522
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF523
        bool "bf523"
        select ADK_CPU_BF523
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_BFIN_BF524
        bool "bf524"
        select ADK_CPU_BF524
	depends on ADK_TARGET_ARCH_BFIN

config ADK_TARGET_CPU_CRIS_V10
	bool "cris v10"
        select ADK_CPU_CRIS_V10
	depends on ADK_TARGET_ARCH_CRIS

config ADK_TARGET_CPU_CRIS_V32
	bool "cris v32"
        select ADK_CPU_CRIS_V32
	depends on ADK_TARGET_ARCH_CRIS

config ADK_TARGET_CPU_CF_5206
	bool "coldfire 5206"
	select ADK_CPU_CF_5206
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5206E
	bool "coldfire 5206e"
	select ADK_CPU_CF_5206E
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5208
	bool "coldfire 5208"
	select ADK_CPU_CF_5208
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5211A
	bool "coldfire 5211a"
	select ADK_CPU_CF_5211A
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5213
	bool "coldfire 5213"
	select ADK_CPU_CF_5213
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5216
	bool "coldfire 5216"
	select ADK_CPU_CF_5216
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_52235
	bool "coldfire 52235"
	select ADK_CPU_CF_52235
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5225
	bool "coldfire 5225"
	select ADK_CPU_CF_5225
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_52259
	bool "coldfire 52259"
	select ADK_CPU_CF_52259
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5235
	bool "coldfire 5235"
	select ADK_CPU_CF_5235
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5249
	bool "coldfire 5249"
	select ADK_CPU_CF_5249
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_CF_5250
	bool "coldfire 5250"
	select ADK_CPU_CF_5250
	select ADK_TARGET_UCLINUX
	depends on ADK_TARGET_ARCH_M68K

config ADK_TARGET_CPU_X86_I486
	bool "i486"
	select ADK_CPU_I486
	depends on ADK_TARGET_ARCH_X86

config ADK_TARGET_CPU_X86_I586
	bool "i586"
	select ADK_CPU_I586
	depends on ADK_TARGET_ARCH_X86

config ADK_TARGET_CPU_X86_I686
	bool "i686"
	select ADK_CPU_I686
	depends on ADK_TARGET_ARCH_X86

config ADK_TARGET_CPU_X86_GEODE
	bool "geode"
	select ADK_CPU_GEODE
	depends on ADK_TARGET_ARCH_X86

config ADK_TARGET_CPU_X86_ATOM
	bool "atom"
	select ADK_CPU_ATOM
	depends on ADK_TARGET_ARCH_X86

endchoice

choice
prompt "Toolchain options"
depends on ADK_TARGET_TOOLCHAIN
config ADK_TOOLCHAIN_ONLY
	bool "Only build toolchain and selected packages"

config ADK_TOOLCHAIN_ARCHIVE
	bool "Build a complete system usable f.e. via chroot"

endchoice
