File tree 4 files changed +24
-0
lines changed
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 50
50
default = False ,
51
51
help = "Compile the rtos" )
52
52
53
+ parser .add_option ("--rpc" ,
54
+ action = "store_true" ,
55
+ dest = "rpc" ,
56
+ default = False ,
57
+ help = "Compile the rpc library" )
58
+
53
59
parser .add_option ("-e" , "--eth" ,
54
60
action = "store_true" , dest = "eth" ,
55
61
default = False ,
169
175
# Additional Libraries
170
176
if options .rtos :
171
177
libraries .extend (["rtx" , "rtos" ])
178
+ if options .rpc :
179
+ libraries .extend (["rpc" ])
172
180
if options .eth :
173
181
libraries .append ("eth" )
174
182
if options .usb :
Original file line number Diff line number Diff line change 34
34
"dependencies" : [MBED_LIBRARIES , MBED_RTX ],
35
35
},
36
36
37
+ # RPC
38
+ {
39
+ "id" : "rpc" ,
40
+ "source_dir" : MBED_RPC ,
41
+ "build_dir" : RPC_LIBRARY ,
42
+ "dependencies" : [MBED_LIBRARIES ],
43
+ },
44
+
37
45
# USB Device libraries
38
46
{
39
47
"id" : "usb" ,
Original file line number Diff line number Diff line change 30
30
from workspace_tools .utils import args_error
31
31
from workspace_tools .paths import BUILD_DIR
32
32
from workspace_tools .paths import RTOS_LIBRARIES
33
+ from workspace_tools .paths import RPC_LIBRARY
33
34
from workspace_tools .paths import ETH_LIBRARY
34
35
from workspace_tools .paths import USB_HOST_LIBRARIES , USB_LIBRARIES
35
36
from workspace_tools .paths import DSP_LIBRARIES
113
114
action = "store_true" , dest = "rtos" ,
114
115
default = False , help = "Link with RTOS library" )
115
116
117
+ parser .add_option ("--rpc" ,
118
+ action = "store_true" , dest = "rpc" ,
119
+ default = False , help = "Link with RPC library" )
120
+
116
121
parser .add_option ("--eth" ,
117
122
action = "store_true" , dest = "eth" ,
118
123
default = False ,
218
223
219
224
# Linking with extra libraries
220
225
if options .rtos : test .dependencies .append (RTOS_LIBRARIES )
226
+ if options .rpc : test .dependencies .append (RPC_LIBRARY )
221
227
if options .eth : test .dependencies .append (ETH_LIBRARY )
222
228
if options .usb_host : test .dependencies .append (USB_HOST_LIBRARIES )
223
229
if options .usb : test .dependencies .append (USB_LIBRARIES )
Original file line number Diff line number Diff line change 47
47
# mbed RPC
48
48
MBED_RPC = join (LIB_DIR , "rpc" )
49
49
50
+ RPC_LIBRARY = join (BUILD_DIR , "rpc" )
51
+
50
52
# mbed RTOS
51
53
RTOS = join (LIB_DIR , "rtos" )
52
54
MBED_RTX = join (RTOS , "rtx" )
You can’t perform that action at this time.
0 commit comments