-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSConscript
More file actions
51 lines (44 loc) · 1.18 KB
/
Copy pathSConscript
File metadata and controls
51 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Import('RTT_ROOT')
from building import *
boards_src = []
mac_src = []
samples_src = []
softse_src = []
cwd = GetCurrentDir()
softse_src = Split("""
softse/aes.c
softse/cmac.c
softse/soft-se.c
softse/utilities.c
""")
samples_src = Split("""
samples/sample.c
""")
mac_src = Split("""
mac/RegionCommon.c
mac/RegionCN470.c
mac/RegionEU433.c
mac/Region.c
mac/LoRaMacSerializer.c
mac/LoRaMacParser.c
mac/LoRaMacCrypto.c
mac/LoRaMacConfirmQueue.c
mac/LoRaMacCommands.c
mac/LoRaMacClassB.c
mac/LoRaMacAdr.c
mac/LoRaMac.c
mac/LoRaMacFunc.c
""")
boards_src = Split("""
boards/NvmCtxMgmt.c
""")
# The set of source files associated with this SConscript file.
path = [cwd + '/softse',
cwd + '/samples',
cwd + '/mac',
cwd + '/boards']
group = DefineGroup('lorawan_driver/boards', boards_src, depend = ['PKG_USING_LORAWAN_DRIVER'], CPPPATH = path)
group = DefineGroup('lorawan_driver/mac', mac_src, depend = ['PKG_USING_LORAWAN_DRIVER'], CPPPATH = path)
group = DefineGroup('lorawan_driver/softse', softse_src, depend = ['PKG_USING_LORAWAN_DRIVER'], CPPPATH = path)
group = DefineGroup('lorawan_driver/samples', samples_src, depend = ['PKG_USING_LORAWAN_DRIVER'], CPPPATH = path)
Return('group')