from building import *

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

if not GetDepend('BSP_DRV_EMAC'):
    SrcRemove(src, ['drv_lan9118.c'])

if not GetDepend('BSP_DRV_CLCD'):
    SrcRemove(src, ['drv_clcd.c'])

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

Return('group')