2012-06-14 21:17:50 +08:00
|
|
|
from building import *
|
|
|
|
|
2012-10-28 23:30:54 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = []
|
|
|
|
|
|
|
|
rtc = ['rtc.c']
|
|
|
|
|
|
|
|
rtc_alarm = ['alarm.c']
|
|
|
|
|
2012-06-14 21:17:50 +08:00
|
|
|
CPPPATH = [cwd + '/../include']
|
2012-10-28 23:30:54 +08:00
|
|
|
group = []
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_RTC']):
|
|
|
|
src = src + rtc
|
|
|
|
if GetDepend(['RT_USING_ALARM']):
|
|
|
|
src = src + rtc_alarm
|
|
|
|
|
2012-06-14 21:17:50 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
|
|
|
|
2012-10-28 23:30:54 +08:00
|
|
|
Return('group')
|