summaryrefslogtreecommitdiff
path: root/bsp/stm32f20x/Drivers/SConscript
blob: b3f935587bb5622cc25e62be21896fcec49208b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from building import *

cwd = GetCurrentDir()
src	= Glob('*.c')
CPPPATH = [cwd]

# remove no need file.
if GetDepend('RT_USING_LWIP') == False:
    SrcRemove(src, 'stm32f2_eth.c')
if GetDepend('RT_USING_DFS') == False:
    SrcRemove(src, 'sdio_sd.c')

#remove other no use files
#SrcRemove(src, 'FM25Lx.c')
#SrcRemove(src, '24LCxx.c')

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

Return('group')