Skip to content

Commit 57202ac

Browse files
author
Kimmo Lepikko
committed
Added WISE-1570 and BG96 with all configs
1 parent 3698677 commit 57202ac

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Jenkinsfile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def raas = [
2626
def targets = [
2727
"UBLOX_C027",
2828
"MTB_MTS_DRAGONFLY",
29-
"UBLOX_C030_U201"
29+
"UBLOX_C030_U201",
30+
"MTB_ADV_WISE_1570",
31+
"K64F"
3032
]
3133

3234
// Map toolchains to compilers
@@ -83,10 +85,26 @@ def buildStep(target, compilerLabel, toolchain) {
8385
checkout scm
8486
def config_file = "mbed_app.json"
8587

88+
// Configurations for different targets
8689
if ("${target}" == "UBLOX_C030_U201") {
8790
execute("sed -i 's/internet/JTM2M/' ${config_file}")
8891
}
8992

93+
if ("${target}" == "UBLOX_C027") {
94+
execute("sed -i 's/TCP/UDP/' ${config_file}")
95+
}
96+
97+
if ("${target}" == "MTB_ADV_WISE_1570") {
98+
execute("sed -i 's/TCP/UDP/' ${config_file}")
99+
execute("sed -i 's/\"lwip.ppp-enabled\": true,/\"lwip.ppp-enabled\": false,/' ${config_file}")
100+
execute("sed -i 's/\"platform.default-serial-baud-rate\": 115200,/\"platform.default-serial-baud-rate\": 9600,/' ${config_file}")
101+
}
102+
103+
if ("${target}" == "K64F") {
104+
execute("sed -i 's/TCP/UDP/' ${config_file}")
105+
execute("sed -i 's/\"lwip.ppp-enabled\": true,/\"lwip.ppp-enabled\": false,/' ${config_file}")
106+
execute("sed -i 's/\"target_overrides\": {/\"macros\": [\"CELLULAR_DEVICE=QUECTEL_BG96\", \"MDMRXD=PTC16\", \"MDMTXD=PTC17\"], \"target_overrides\": {/' ${config_file}")
107+
}
90108
// Set mbed-os to revision received as parameter
91109
execute ("mbed deploy --protocol ssh")
92110
if (env.MBED_OS_REVISION != '') {

0 commit comments

Comments
 (0)