forked from xuos/xiuos
parent
244fcb9e5d
commit
3bcbcd6499
|
@ -0,0 +1,19 @@
|
||||||
|
import os
|
||||||
|
Import('RTT_ROOT')
|
||||||
|
from building import *
|
||||||
|
SOURCES = []
|
||||||
|
if GetDepend(['CONNECTION_ADAPTER_LORA']):
|
||||||
|
SOURCES = ['adapter_lora.c'] + SOURCES
|
||||||
|
objs = []
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
path = [cwd]
|
||||||
|
group = DefineGroup('lora', SOURCES, depend = [], CPPPATH = [cwd])
|
||||||
|
objs = objs + group
|
||||||
|
list = os.listdir(cwd)
|
||||||
|
|
||||||
|
for d in list:
|
||||||
|
path = os.path.join(cwd, d)
|
||||||
|
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||||
|
objs = objs + SConscript(os.path.join(path, 'SConscript'))
|
||||||
|
|
||||||
|
Return('objs')
|
|
@ -16,5 +16,8 @@ if ADD_NUTTX_FETURES
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if ADD_RTTHREAD_FETURES
|
if ADD_RTTHREAD_FETURES
|
||||||
|
config ADAPTER_SX1278_DRIVER
|
||||||
|
string "SX1278 device spi driver path"
|
||||||
|
default "/dev/sx1278"
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
from building import *
|
||||||
|
import os
|
||||||
|
|
||||||
|
cwd = GetCurrentDir()
|
||||||
|
src = []
|
||||||
|
if GetDepend(['ADAPTER_SX1278']):
|
||||||
|
src += ['sx1278.c']
|
||||||
|
group = DefineGroup('connection lora sx1278', src, depend = [], CPPPATH = [cwd])
|
||||||
|
|
||||||
|
Return('group')
|
Loading…
Reference in New Issue