diff options
Diffstat (limited to 'components/drivers/hwtimer/SConscript')
| -rw-r--r-- | components/drivers/hwtimer/SConscript | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/components/drivers/hwtimer/SConscript b/components/drivers/hwtimer/SConscript index 534e04b6c0..b6ffc580ed 100644 --- a/components/drivers/hwtimer/SConscript +++ b/components/drivers/hwtimer/SConscript @@ -1,8 +1,18 @@ from building import * -cwd = GetCurrentDir() -src = Glob('*.c') +group = [] + +if not GetDepend(['RT_USING_HWTIMER']): + Return('group') + +cwd = GetCurrentDir() CPPPATH = [cwd + '/../include'] -group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_HWTIMER'], CPPPATH = CPPPATH) + +src = ['hwtimer.c'] + +if GetDepend(['RT_HWTIMER_ARM_ARCH']): + src += ['hwtimer-arm_arch.c'] + +group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') |
