diff options
| author | Sherman <[email protected]> | 2021-10-13 18:18:01 +0800 |
|---|---|---|
| committer | Sherman <[email protected]> | 2021-10-13 18:18:01 +0800 |
| commit | f2468fa70e2cdd0fdfc3d6ea661d8b63da4a2803 (patch) | |
| tree | 705321cd9110f943eeef071f5241ae35b74c299f /bsp/ra6m4-cpk/drivers/SConscript | |
| parent | 9c4e022bd4949991e3a67c68fd18653d84fa6b3a (diff) | |
| parent | 9e00f2b079f780e6890e08a30dd3a4ca04f785f0 (diff) | |
Merge branch 'master' of github.com:ShermanShao/rt-thread
Diffstat (limited to 'bsp/ra6m4-cpk/drivers/SConscript')
| -rw-r--r-- | bsp/ra6m4-cpk/drivers/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bsp/ra6m4-cpk/drivers/SConscript b/bsp/ra6m4-cpk/drivers/SConscript new file mode 100644 index 0000000000..1d3cf5a283 --- /dev/null +++ b/bsp/ra6m4-cpk/drivers/SConscript @@ -0,0 +1,24 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() + +# add the general drivers. +src = Split(""" + drv_common.c +""") + +if GetDepend(['RT_USING_SERIAL']): + if GetDepend(['RT_USING_SERIAL_V2']): + src += ['drv_usart_v2.c'] + else: + print("\nThe current project does not support serial-v1\n") + Return('group') + +path = [cwd] +path += [cwd + '/config'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) + +Return('group') |
