2018-09-26 21:55:06 +08:00
|
|
|
menu "RISC-V architecture"
|
2017-12-26 13:55:52 +08:00
|
|
|
depends on RISCV
|
|
|
|
|
|
|
|
config SYS_ARCH
|
|
|
|
default "riscv"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Target select"
|
|
|
|
optional
|
|
|
|
|
2018-05-29 09:54:40 +08:00
|
|
|
config TARGET_AX25_AE350
|
|
|
|
bool "Support ax25-ae350"
|
2017-12-26 13:55:52 +08:00
|
|
|
|
2018-09-26 21:55:21 +08:00
|
|
|
config TARGET_QEMU_VIRT
|
|
|
|
bool "Support QEMU Virt Board"
|
|
|
|
|
2017-12-26 13:55:52 +08:00
|
|
|
endchoice
|
|
|
|
|
2018-11-07 09:34:06 +08:00
|
|
|
# board-specific options below
|
2018-05-29 09:54:40 +08:00
|
|
|
source "board/AndesTech/ax25-ae350/Kconfig"
|
2018-09-26 21:55:21 +08:00
|
|
|
source "board/emulation/qemu-riscv/Kconfig"
|
2017-12-26 13:55:52 +08:00
|
|
|
|
2018-11-07 09:34:06 +08:00
|
|
|
# platform-specific options below
|
|
|
|
source "arch/riscv/cpu/ax25/Kconfig"
|
|
|
|
|
|
|
|
# architecture-specific options below
|
|
|
|
|
2017-12-26 13:55:52 +08:00
|
|
|
choice
|
2018-11-22 18:26:12 +08:00
|
|
|
prompt "Base ISA"
|
|
|
|
default ARCH_RV32I
|
2017-12-26 13:55:52 +08:00
|
|
|
|
2018-11-22 18:26:12 +08:00
|
|
|
config ARCH_RV32I
|
|
|
|
bool "RV32I"
|
2017-12-26 13:55:52 +08:00
|
|
|
select 32BIT
|
|
|
|
help
|
2018-11-22 18:26:12 +08:00
|
|
|
Choose this option to target the RV32I base integer instruction set.
|
2017-12-26 13:55:52 +08:00
|
|
|
|
2018-11-22 18:26:12 +08:00
|
|
|
config ARCH_RV64I
|
|
|
|
bool "RV64I"
|
2017-12-26 13:55:52 +08:00
|
|
|
select 64BIT
|
2018-11-22 18:26:13 +08:00
|
|
|
select PHYS_64BIT
|
2017-12-26 13:55:52 +08:00
|
|
|
help
|
2018-11-22 18:26:12 +08:00
|
|
|
Choose this option to target the RV64I base integer instruction set.
|
2017-12-26 13:55:52 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2018-11-22 18:26:14 +08:00
|
|
|
config RISCV_ISA_C
|
|
|
|
bool "Emit compressed instructions"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Adds "C" to the ISA subsets that the toolchain is allowed to emit
|
|
|
|
when building U-Boot, which results in compressed instructions in the
|
|
|
|
U-Boot binary.
|
|
|
|
|
|
|
|
config RISCV_ISA_A
|
|
|
|
def_bool y
|
|
|
|
|
2018-12-03 13:27:40 +08:00
|
|
|
config RISCV_SMODE
|
|
|
|
bool "Run in S-Mode"
|
|
|
|
help
|
|
|
|
Enable this option to build U-Boot for RISC-V S-Mode
|
|
|
|
|
2017-12-26 13:55:52 +08:00
|
|
|
config 32BIT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config 64BIT
|
|
|
|
bool
|
|
|
|
|
|
|
|
endmenu
|