Rtos API example

Committer:
marcozecchini
Date:
Sat Feb 23 12:13:36 2019 +0000
Revision:
0:9fca2b23d0ba
final commit

Who changed what in which revision?

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