2020-11-30 13:13:08 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
objs = []
|
|
|
|
|
|
|
|
group = DefineGroup('ZYNQMP_HAL', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
if GetDepend('BSP_USING_SDIO'):
|
|
|
|
objs = objs + SConscript('sdps_v3_9/SConscript')
|
|
|
|
if GetDepend('RT_USING_PIN'):
|
|
|
|
objs = objs + SConscript('gpiops_v3_7/SConscript')
|
2021-05-13 16:33:40 +08:00
|
|
|
if GetDepend('BSP_USING_ETH'):
|
|
|
|
objs = objs + SConscript('emacps_v3_11/SConscript')
|
|
|
|
objs = objs + SConscript('xemacpsif/SConscript')
|
2020-11-30 13:13:08 +08:00
|
|
|
|
|
|
|
objs = objs + group
|
|
|
|
|
|
|
|
Return('objs')
|