mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 04:24:33 +00:00
17 lines
310 B
Python
Executable File
17 lines
310 B
Python
Executable File
# RT-Thread building script for component
|
|
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd]
|
|
|
|
if not GetDepend('BSP_USING_DW_SPI'):
|
|
SrcRemove(src, ['drv_dw_spi.c'])
|
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
objs = [group]
|
|
|
|
Return('objs')
|