rt-thread-official/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript

21 lines
473 B
Python
Raw Normal View History

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)
2023-01-09 10:14:23 +08:00
#定义组Drivers 将board.c添加到当前组中 无以来条件 将路径导出为头文件路径
Return('group')
#将本脚本的配置导出给上级