原始版本

This commit is contained in:
冯佳
2025-06-19 21:56:46 +08:00
parent fe98e5f010
commit a4841450cf
4152 changed files with 1910684 additions and 0 deletions

View File

@ -0,0 +1,18 @@
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')