2023-06-30 00:05:55 +08:00
|
|
|
mainmenu "RT-Thread Project Configuration"
|
|
|
|
|
2024-06-11 12:16:39 +08:00
|
|
|
BSP_DIR := .
|
2023-06-30 00:05:55 +08:00
|
|
|
|
2024-06-11 12:16:39 +08:00
|
|
|
RTT_DIR := ../../..
|
2023-06-30 00:05:55 +08:00
|
|
|
|
2024-06-11 12:16:39 +08:00
|
|
|
PKGS_DIR := packages
|
2023-06-30 00:05:55 +08:00
|
|
|
|
2024-06-11 12:16:39 +08:00
|
|
|
source "$(RTT_DIR)/Kconfig"
|
|
|
|
osource "$PKGS_DIR/Kconfig"
|
|
|
|
rsource "board/Kconfig"
|
2023-06-30 00:05:55 +08:00
|
|
|
|
2024-04-03 07:37:45 +08:00
|
|
|
config BSP_USING_CV18XX
|
2023-06-30 00:05:55 +08:00
|
|
|
bool
|
|
|
|
select ARCH_RISCV64
|
2024-07-15 12:06:17 +08:00
|
|
|
select ARCH_USING_RISCV_COMMON64
|
2023-11-01 23:10:13 +08:00
|
|
|
select RT_USING_SYSTEM_WORKQUEUE
|
2023-06-30 00:05:55 +08:00
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
select RT_USING_CACHE
|
|
|
|
select ARCH_MM_MMU
|
2024-01-28 16:05:52 +08:00
|
|
|
select RT_USING_DEVICE_OPS
|
2023-06-30 00:05:55 +08:00
|
|
|
default y
|
|
|
|
|
|
|
|
config C906_PLIC_PHY_ADDR
|
|
|
|
hex
|
|
|
|
default 0x70000000
|
|
|
|
|
|
|
|
config IRQ_MAX_NR
|
2024-07-15 12:06:17 +08:00
|
|
|
int
|
2023-06-30 00:05:55 +08:00
|
|
|
default 64
|
|
|
|
|
|
|
|
config TIMER_CLK_FREQ
|
|
|
|
int
|
|
|
|
default 25000000
|
|
|
|
|
2024-05-24 00:13:11 +08:00
|
|
|
config GPIO_IRQ_BASE
|
|
|
|
int
|
|
|
|
default 60
|
|
|
|
|
|
|
|
config SYS_GPIO_IRQ_BASE
|
|
|
|
int
|
|
|
|
default 70
|
2024-07-15 12:06:17 +08:00
|
|
|
|
2023-06-30 00:05:55 +08:00
|
|
|
config __STACKSIZE__
|
|
|
|
int "stack size for interrupt"
|
|
|
|
default 4096
|
2024-03-28 23:35:54 +08:00
|
|
|
|
2024-05-22 08:19:07 +08:00
|
|
|
config SOC_TYPE_CV180X
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config SOC_TYPE_SG2002
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2024-03-28 23:35:54 +08:00
|
|
|
choice
|
|
|
|
prompt "Board Type"
|
2024-04-03 07:37:45 +08:00
|
|
|
default BOARD_TYPE_MILKV_DUO256M
|
2024-03-28 23:35:54 +08:00
|
|
|
|
|
|
|
config BOARD_TYPE_MILKV_DUO
|
2024-05-22 08:19:07 +08:00
|
|
|
select SOC_TYPE_CV180X
|
2024-03-28 23:35:54 +08:00
|
|
|
bool "milkv-duo"
|
2024-04-03 07:37:45 +08:00
|
|
|
|
2024-04-09 22:48:57 +08:00
|
|
|
config BOARD_TYPE_MILKV_DUO_SPINOR
|
2024-05-22 08:19:07 +08:00
|
|
|
select SOC_TYPE_CV180X
|
2024-04-09 22:48:57 +08:00
|
|
|
bool "milkv-duo-spinor"
|
|
|
|
|
2024-04-03 07:37:45 +08:00
|
|
|
config BOARD_TYPE_MILKV_DUO256M
|
2024-05-22 08:19:07 +08:00
|
|
|
select SOC_TYPE_SG2002
|
2024-04-03 07:37:45 +08:00
|
|
|
bool "milkv-duo256m"
|
2024-04-09 22:48:57 +08:00
|
|
|
|
|
|
|
config BOARD_TYPE_MILKV_DUO256M_SPINOR
|
2024-05-22 08:19:07 +08:00
|
|
|
select SOC_TYPE_SG2002
|
2024-04-09 22:48:57 +08:00
|
|
|
bool "milkv-duo256m-spinor"
|
2024-07-15 12:06:17 +08:00
|
|
|
|
2024-03-28 23:35:54 +08:00
|
|
|
endchoice
|
2024-07-22 11:51:23 +08:00
|
|
|
|
|
|
|
choice BSP_ROOTFS_TYPE
|
|
|
|
prompt "rootfs type"
|
|
|
|
default BSP_ROOTFS_TYPE_ROMFS
|
|
|
|
|
|
|
|
config BSP_ROOTFS_TYPE_ROMFS
|
|
|
|
bool "ROMFS"
|
|
|
|
select RT_USING_DFS_ROMFS
|
|
|
|
|
|
|
|
config BSP_ROOTFS_TYPE_CROMFS
|
|
|
|
bool "CROMFS"
|
|
|
|
select RT_USING_DFS_CROMFS
|
|
|
|
select PKG_USING_ZLIB
|
|
|
|
select PKG_USING_ZLIB_LATEST_VERSION
|
|
|
|
endchoice
|