mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 14:01:39 +00:00
1. Kconfig import wtih DM 2. Add DM API for Drivers Signed-off-by: GuEe-GUI <2991707448@qq.com>
13 lines
279 B
Python
13 lines
279 B
Python
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
if not GetDepend('RT_USING_DM'):
|
|
SrcRemove(src, ['can_dm.c'])
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_CAN'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|