Maxim mbed development library

Dependents:   sensomed

Committer:
switches
Date:
Tue Nov 08 18:27:11 2016 +0000
Revision:
0:0e018d759a2a
Initial commit

Who changed what in which revision?

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