@@ -13,13 +13,13 @@ def toolchains = [
13
13
]
14
14
15
15
def configurations = [
16
- " default " : [" ETHERNET " ],
17
- " thread " : [" ATMEL" , " MCR20" ],
18
- " 6lowpan " : [" ATMEL" , " MCR20" ]
16
+ " def " : [" ETH " ],
17
+ " thd " : [" ATMEL" , " MCR20" ],
18
+ " 6lp " : [" ATMEL" , " MCR20" ]
19
19
]
20
20
21
21
def connectiontypes = [
22
- " ETHERNET " ,
22
+ " ETH " ,
23
23
" ATMEL" ,
24
24
" MCR20"
25
25
]
@@ -60,14 +60,14 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) {
60
60
dir(" mbed-os-example-client" ) {
61
61
checkout scm
62
62
63
- if (" ${ configName} " == " thread " ) {
63
+ if (" ${ configName} " == " thd " ) {
64
64
// Change device type to Thread router
65
65
execute(" sed -i 's/\" NANOSTACK\" , \" LOWPAN_ROUTER\" , \" COMMON_PAL\" /\" NANOSTACK\" , \" THREAD_ROUTER\" , \" COMMON_PAL\" /' mbed_app.json" )
66
66
// Change connection type to thread
67
67
execute (" sed -i 's/\" value\" : \" ETHERNET\" /\" value\" : \" MESH_THREAD\" /' mbed_app.json" )
68
68
}
69
69
70
- if (" ${ configName} " == " 6lowpan " ) {
70
+ if (" ${ configName} " == " 6lp " ) {
71
71
// Change connection type to 6LoWPAN
72
72
execute (" sed -i 's/\" value\" : \" ETHERNET\" /\" value\" : \" MESH_LOWPAN_ND\" /' mbed_app.json" )
73
73
@@ -89,7 +89,7 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) {
89
89
execute (" git fetch origin latest" )
90
90
execute (" git checkout FETCH_HEAD" )
91
91
}
92
- execute (" mbed compile --build out/${ target} _${ compilerLabel } _${ configName} _${ connectiontype} / -m ${ target} -t ${ toolchain} -c" )
92
+ execute (" mbed compile --build out/${ target} _${ toolchain } _${ configName} _${ connectiontype} / -m ${ target} -t ${ toolchain} -c" )
93
93
}
94
94
archive ' **/mbed-os-example-client.bin'
95
95
}
0 commit comments