828eco基于GD32H7mcu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
482 B

from building import *
cwd = GetCurrentDir()
CPPPATH = [cwd, cwd + '/../include']
src = Glob('*.c')
if GetDepend('RT_USING_OFW') == False:
SrcRemove(src, ['ofw.c'])
if GetDepend('RT_USING_PHY_V2') == False:
SrcRemove(src, ['general.c','mdio.c','ofw.c'])
if GetDepend('RT_USING_PHY_V2') == False:
if GetDepend('RT_USING_PHY') == False:
SrcRemove(src, ['phy.c'])
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')