Skip to content

Commit 45595b1

Browse files
author
Jarno Lämsä
authored
Merge pull request #160 from ARMmbed/jenkinsconfig
Wi-SUN configuration for CI build
2 parents 8483966 + e6edfca commit 45595b1

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def toolchains = [
3333
def configurations = [
3434
LOWPAN: "6lowpan_Atmel_RF.json",
3535
THREAD: "Thread_Atmel_RF.json",
36-
THREAD_SLIP: "Thread_SLIP_Atmel_RF.json"
36+
THREAD_SLIP: "Thread_SLIP_Atmel_RF.json",
37+
WI_SUN: "Wisun_Stm_s2lp_RF.json"
3738
]
3839

3940
def stepsForParallel = [:]
@@ -48,8 +49,8 @@ for (int i = 0; i < targets.size(); i++) {
4849
def configurationLabel = configurations.keySet().asList().get(k)
4950
def configurationFile = configurations.get(configurationLabel)
5051
def stepName = "${target} ${configurationLabel} ${toolchain}"
51-
// SLIP configuration exist only for K64F based Raspberry HAT
52-
if (configurationLabel == "THREAD_SLIP" && target != "K64F") {
52+
// SLIP configuration exist only for K64F based Raspberry HAT and Wi-SUN configuration exist only for K64F
53+
if ((configurationLabel == "THREAD_SLIP" || configurationLabel == "WI_SUN") && target != "K64F") {
5354
continue;
5455
}
5556
stepsForParallel[stepName] = buildStep(target, compilerLabel, configurationFile, configurationLabel, toolchain)

configs/Wisun_Stm_s2lp_RF.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"operating-mode": 255,
4444
"uc-fixed-channel": "0xffff",
4545
"bc-fixed-channel": "0xffff",
46-
"network-name": "\"ARM-WS-TESTING\""
46+
"network-name": "\"Wi-SUN Network\""
4747
},
4848
"target_overrides": {
4949
"*": {

source/borderrouter_ws.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ typedef struct {
112112
} ws_config_t;
113113
static ws_config_t ws_conf;
114114

115-
static const char default_network_name[] = "ARM-WS-TESTING";
116-
117115
static void mesh_network_up()
118116
{
119117
tr_debug("Create Mesh Interface");
@@ -175,13 +173,8 @@ static void eth_network_data_init()
175173

176174
void load_config(void)
177175
{
178-
#ifdef MBED_CONF_APP_NETWORK_NAME
179176
ws_conf.network_name = malloc(sizeof(MBED_CONF_APP_NETWORK_NAME) + 1);
180177
strcpy(ws_conf.network_name, MBED_CONF_APP_NETWORK_NAME);
181-
#else
182-
ws_conf.network_name = malloc(sizeof(default_network_name) + 1);
183-
strcpy(ws_conf.network_name, default_network_name);
184-
#endif //MBED_CONF_APP_NETWORK_NAME
185178
#ifdef MBED_CONF_APP_REGULATORY_DOMAIN
186179
ws_conf.regulatory_domain = MBED_CONF_APP_REGULATORY_DOMAIN;
187180
#else

0 commit comments

Comments
 (0)