mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
34 lines
756 B
Python
34 lines
756 B
Python
import os
|
|
import rtconfig
|
|
from building import *
|
|
|
|
Import('SDK_LIB')
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
# add general drivers
|
|
src = ['board.c']
|
|
|
|
path = [cwd]
|
|
|
|
CPPDEFINES = [
|
|
'CONFIG_KERNEL_RTTHREAD=1',
|
|
'__RT_KERNEL_SOURCE__=1',
|
|
'CONFIG_CSI_V2=1',
|
|
'CONFIG_CSI=csi2',
|
|
'CONFIG_INIT_TASK_STACK_SIZE=4096',
|
|
'CONFIG_APP_TASK_STACK_SIZE=8192',
|
|
'CONFIG_ARCH_MAINSTACK=4096',
|
|
'CONFIG_ARCH_INTERRUPTSTACK=4096',
|
|
'CONFIG_XIP=1',
|
|
'CONFIG_LIBC_MINI_PRINTF_SUPPORT=1',
|
|
'CONFIG_SYSTICK_HZ=100',
|
|
'CONFIG_BOARD_SMARTL_EVB=1',
|
|
'CONFIG_DEBUG=1',
|
|
'CLI_CONFIG_STACK_SIZE=4096',
|
|
'CONFIG_CPU_XUANTIE_E901PLUS_BM_CP=1',
|
|
]
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
|
Return('group')
|