contain lorawan with serial_rx enabled
Dependencies: pulga-lorawan-drv SPI_MX25R Si1133 BME280
Diff: Jenkinsfile
- Revision:
- 35:462743fb571e
- Parent:
- 20:2055271192d6
- Child:
- 38:315a26cd0165
--- a/Jenkinsfile Mon Aug 27 07:45:19 2018 +0100 +++ b/Jenkinsfile Mon Sep 03 08:45:34 2018 +0100 @@ -3,6 +3,8 @@ [$class: 'BooleanParameterDefinition', name: 'regions_build_test', defaultValue: true, description: 'Test build all available regions'] ]]]) +library 'mbed-lib' + if (env.MBED_OS_REVISION == null) { echo 'First run in this branch, using default parameter values' env.MBED_OS_REVISION = '' @@ -30,28 +32,20 @@ "MTB_MURATA_ABZ", "MTS_MDOT_F411RE", "DISCO_L072CZ_LRWAN1", - "MTB_ADV_WISE_1510" + "MTB_ADV_WISE_1510", + "MTB_RAK811" ] // Map toolchains to compilers def toolchains = [ ARM: "armcc", GCC_ARM: "arm-none-eabi-gcc", - IAR: "iar_arm", - ARMC6: "arm6" + IAR: "iar_arm" + //ARMC6: "arm6" ] def stepsForParallel = [:] -// Run correct command based on OS used -def execute(cmd) { - if(isUnix()) { - sh "${cmd}" - } else { - bat "${cmd}" - } -} - // Jenkins pipeline does not support map.each, we need to use oldschool for loop for (int i = 0; i < targets.size(); i++) { for(int j = 0; j < toolchains.size(); j++) { @@ -66,6 +60,9 @@ if (target == "DISCO_L072CZ_LRWAN1" && toolchain == "GCC_ARM") { continue } + if (target == "MTB_RAK811" && toolchain == "GCC_ARM") { + continue + } def stepName = "${target} ${toolchain}" @@ -123,6 +120,14 @@ execute("sed -i 's/define symbol __size_heap__ = 0x800;/define symbol __size_heap__ = 0x1800;/' \ mbed-os/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/TOOLCHAIN_IAR/stm32l152xc.icf") } + + if ("${target}" == "MTB_RAK811") { + execute("sed -i 's/#define RCC_HSICALIBRATION_DEFAULT (0x10U)/#define RCC_HSICALIBRATION_DEFAULT (0x11U)/' \ + mbed-os/targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_hal_rcc.h") + execute("sed -i 's/define symbol __size_heap__ = 0x800;/define symbol __size_heap__ = 0x1800;/' \ + mbed-os/targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_RAK811/device/TOOLCHAIN_IAR/stm32l152xba.icf") + } + execute("mbed compile --build out/${target}_${toolchain}/ -m ${target} -t ${toolchain} -c") } stash name: "${target}_${toolchain}", includes: '**/mbed-os-example-lorawan.bin'