diff options
Diffstat (limited to 'components/drivers/rtc/SConscript')
| -rw-r--r-- | components/drivers/rtc/SConscript | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/components/drivers/rtc/SConscript b/components/drivers/rtc/SConscript index b2d50de758..65552a7765 100644 --- a/components/drivers/rtc/SConscript +++ b/components/drivers/rtc/SConscript @@ -1,8 +1,20 @@ from building import *
-cwd = GetCurrentDir()
-src = Glob('*.c')
+cwd = GetCurrentDir()
+src = []
+
+rtc = ['rtc.c']
+
+rtc_alarm = ['alarm.c']
+
CPPPATH = [cwd + '/../include']
+group = []
+
+if GetDepend(['RT_USING_RTC']):
+ src = src + rtc
+ if GetDepend(['RT_USING_ALARM']):
+ src = src + rtc_alarm
+
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
-Return('group')
+Return('group')
\ No newline at end of file |
