from building import * cwd = GetCurrentDir() src = [] CPPPATH = [cwd + '/../include'] group = [] if GetDepend(['RT_USING_RTC']): src = src + ['dev_rtc.c'] if GetDepend(['RT_USING_ALARM']): src = src + ['dev_alarm.c'] if GetDepend(['RT_USING_SOFT_RTC']): src = src + ['dev_soft_rtc.c'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH) Return('group')