Nicolas Borla / Mbed OS ROME2_Robot_Firmware
Committer:
boro
Date:
Mon Mar 16 13:12:31 2020 +0000
Revision:
0:4beb2ea291ec
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
boro 0:4beb2ea291ec 1
boro 0:4beb2ea291ec 2 // List of targets to compile
boro 0:4beb2ea291ec 3 def targets = [
boro 0:4beb2ea291ec 4 //"LPC1768",
boro 0:4beb2ea291ec 5 //"NUCLEO_F401RE",
boro 0:4beb2ea291ec 6 //"NRF51822",
boro 0:4beb2ea291ec 7 "K64F"
boro 0:4beb2ea291ec 8 ]
boro 0:4beb2ea291ec 9
boro 0:4beb2ea291ec 10 // Map toolchains to compiler labels on Jenkins
boro 0:4beb2ea291ec 11 def toolchains = [
boro 0:4beb2ea291ec 12 ARM: "armcc",
boro 0:4beb2ea291ec 13 //IAR: "iar_arm",
boro 0:4beb2ea291ec 14 GCC_ARM: "arm-none-eabi-gcc"
boro 0:4beb2ea291ec 15 ]
boro 0:4beb2ea291ec 16
boro 0:4beb2ea291ec 17 // mbed.getCurrentBranch returns either local branch name or reference to pull request
boro 0:4beb2ea291ec 18 def currentBranch = mbed.getCurrentBranch()
boro 0:4beb2ea291ec 19
boro 0:4beb2ea291ec 20 // Create a map of predefined build steps
boro 0:4beb2ea291ec 21 def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
boro 0:4beb2ea291ec 22
boro 0:4beb2ea291ec 23 // Run build steps parallel, map as paramater
boro 0:4beb2ea291ec 24 mbed.compile(parallelSteps)
boro 0:4beb2ea291ec 25
boro 0:4beb2ea291ec 26 def testApps = [
boro 0:4beb2ea291ec 27 "mbed-os-cliapp"
boro 0:4beb2ea291ec 28 ]
boro 0:4beb2ea291ec 29
boro 0:4beb2ea291ec 30 // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
boro 0:4beb2ea291ec 31 mbed.buildTestApps(testApps, "${currentBranch}")