summaryrefslogtreecommitdiff
path: root/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript
blob: 7298c465afdb02d30c386d684cfe97f1a1a5cb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
import rtconfig
from building import *

Import('SDK_LIB') #导入 SDK_LIB 标签

cwd = GetCurrentDir() #获取当前目录

# add general drivers #添加驱动
src = Split('''
board.c
''')

path =  [cwd]         #设置path为当前路径

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)

#定义组Drivers 将board.c添加到当前组中 无以来条件 将路径导出为头文件路径
Return('group')
#将本脚本的配置导出给上级