Marco Zecchini
/
Example_RTOS
Rtos API example
mbed-os/tools/build_travis.py@0:9fca2b23d0ba, 2019-02-23 (annotated)
- Committer:
- marcozecchini
- Date:
- Sat Feb 23 12:13:36 2019 +0000
- Revision:
- 0:9fca2b23d0ba
final commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcozecchini | 0:9fca2b23d0ba | 1 | #!/usr/bin/env python2 |
marcozecchini | 0:9fca2b23d0ba | 2 | |
marcozecchini | 0:9fca2b23d0ba | 3 | """ |
marcozecchini | 0:9fca2b23d0ba | 4 | Travis-CI build script |
marcozecchini | 0:9fca2b23d0ba | 5 | |
marcozecchini | 0:9fca2b23d0ba | 6 | mbed SDK |
marcozecchini | 0:9fca2b23d0ba | 7 | Copyright (c) 2011-2013 ARM Limited |
marcozecchini | 0:9fca2b23d0ba | 8 | |
marcozecchini | 0:9fca2b23d0ba | 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
marcozecchini | 0:9fca2b23d0ba | 10 | you may not use this file except in compliance with the License. |
marcozecchini | 0:9fca2b23d0ba | 11 | You may obtain a copy of the License at |
marcozecchini | 0:9fca2b23d0ba | 12 | |
marcozecchini | 0:9fca2b23d0ba | 13 | http://www.apache.org/licenses/LICENSE-2.0 |
marcozecchini | 0:9fca2b23d0ba | 14 | |
marcozecchini | 0:9fca2b23d0ba | 15 | Unless required by applicable law or agreed to in writing, software |
marcozecchini | 0:9fca2b23d0ba | 16 | distributed under the License is distributed on an "AS IS" BASIS, |
marcozecchini | 0:9fca2b23d0ba | 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
marcozecchini | 0:9fca2b23d0ba | 18 | See the License for the specific language governing permissions and |
marcozecchini | 0:9fca2b23d0ba | 19 | limitations under the License. |
marcozecchini | 0:9fca2b23d0ba | 20 | """ |
marcozecchini | 0:9fca2b23d0ba | 21 | |
marcozecchini | 0:9fca2b23d0ba | 22 | import os |
marcozecchini | 0:9fca2b23d0ba | 23 | import sys |
marcozecchini | 0:9fca2b23d0ba | 24 | |
marcozecchini | 0:9fca2b23d0ba | 25 | ################################################################################ |
marcozecchini | 0:9fca2b23d0ba | 26 | # Configure builds here |
marcozecchini | 0:9fca2b23d0ba | 27 | # "libs" can contain "dsp", "usb" |
marcozecchini | 0:9fca2b23d0ba | 28 | |
marcozecchini | 0:9fca2b23d0ba | 29 | build_list = ( |
marcozecchini | 0:9fca2b23d0ba | 30 | { "target": "LPC1768", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 31 | { "target": "LPC11U24", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 32 | { "target": "OC_MBUINO", "toolchains": "GCC_ARM", "libs": [] }, |
marcozecchini | 0:9fca2b23d0ba | 33 | |
marcozecchini | 0:9fca2b23d0ba | 34 | { "target": "LPC11U24_301", "toolchains": "GCC_ARM", "libs": [] }, |
marcozecchini | 0:9fca2b23d0ba | 35 | |
marcozecchini | 0:9fca2b23d0ba | 36 | { "target": "B96B_F446VE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 37 | { "target": "NUCLEO_L053R8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 38 | { "target": "NUCLEO_L152RE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 39 | { "target": "NUCLEO_F030R8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 40 | { "target": "NUCLEO_F031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 41 | { "target": "NUCLEO_F042K6", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 42 | { "target": "NUCLEO_F070RB", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 43 | { "target": "NUCLEO_F072RB", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 44 | { "target": "NUCLEO_F091RC", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 45 | { "target": "NUCLEO_F103RB", "toolchains": "GCC_ARM" }, |
marcozecchini | 0:9fca2b23d0ba | 46 | { "target": "NUCLEO_F207ZG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 47 | { "target": "NUCLEO_F302R8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 48 | { "target": "NUCLEO_F303K8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 49 | { "target": "NUCLEO_F303RE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 50 | { "target": "NUCLEO_F303ZE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 51 | { "target": "NUCLEO_F334R8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 52 | { "target": "NUCLEO_F401RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 53 | { "target": "NUCLEO_F410RB", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 54 | { "target": "NUCLEO_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 55 | { "target": "NUCLEO_F412ZG", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 56 | { "target": "NUCLEO_L432KC", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 57 | { "target": "NUCLEO_L476RG", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 58 | { "target": "NUCLEO_L011K4", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 59 | { "target": "NUCLEO_L031K6", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 60 | { "target": "NUCLEO_L073RZ", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 61 | { "target": "NUCLEO_F429ZI", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 62 | { "target": "NUCLEO_F446RE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 63 | { "target": "NUCLEO_F446ZE", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 64 | { "target": "NUCLEO_F746ZG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 65 | { "target": "NUCLEO_F767ZI", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 66 | { "target": "NUCLEO_L496ZG", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 67 | |
marcozecchini | 0:9fca2b23d0ba | 68 | { "target": "MOTE_L152RC", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 69 | |
marcozecchini | 0:9fca2b23d0ba | 70 | { "target": "ELMO_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 71 | |
marcozecchini | 0:9fca2b23d0ba | 72 | { "target": "MTS_MDOT_F405RG", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 73 | { "target": "MTS_MDOT_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 74 | { "target": "MTS_DRAGONFLY_F411RE", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 75 | { "target": "ARCH_MAX", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 76 | |
marcozecchini | 0:9fca2b23d0ba | 77 | { "target": "DISCO_F051R8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 78 | { "target": "DISCO_F303VC", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 79 | { "target": "DISCO_F334C8", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 80 | { "target": "DISCO_F401VC", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 81 | |
marcozecchini | 0:9fca2b23d0ba | 82 | { "target": "DISCO_F407VG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 83 | { "target": "DISCO_F413ZH", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 84 | { "target": "DISCO_F429ZI", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 85 | { "target": "DISCO_F469NI", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 86 | { "target": "DISCO_F746NG", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 87 | { "target": "DISCO_F769NI", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 88 | { "target": "DISCO_L475VG_IOT01A", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 89 | { "target": "DISCO_L476VG", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 90 | { "target": "DISCO_L072CZ_LRWAN1", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 91 | |
marcozecchini | 0:9fca2b23d0ba | 92 | { "target": "LPC1114", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 93 | { "target": "LPC11U35_401", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 94 | { "target": "UBLOX_C027", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 95 | { "target": "LPC11U35_501", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 96 | { "target": "LPC11U68", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 97 | { "target": "LPC11U37H_401", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 98 | |
marcozecchini | 0:9fca2b23d0ba | 99 | { "target": "KL05Z", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 100 | { "target": "KL25Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 101 | { "target": "KL27Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 102 | { "target": "KL43Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 103 | { "target": "KL46Z", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 104 | { "target": "K20D50M", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 105 | { "target": "TEENSY3_1", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 106 | { "target": "K64F", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 107 | { "target": "K22F", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 108 | { "target": "LPC4088", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 109 | { "target": "ARCH_PRO", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 110 | { "target": "LPC1549", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 111 | { "target": "NRF51822", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 112 | { "target": "DELTA_DFCM_NNN40", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 113 | { "target": "NRF51_DK", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 114 | { "target": "NRF51_MICROBIT", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 115 | |
marcozecchini | 0:9fca2b23d0ba | 116 | { "target": "EFM32ZG_STK3200", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 117 | { "target": "EFM32HG_STK3400", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 118 | { "target": "EFM32LG_STK3600", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 119 | { "target": "EFM32GG_STK3700", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 120 | { "target": "EFM32WG_STK3800", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 121 | { "target": "EFM32PG_STK3401", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 122 | |
marcozecchini | 0:9fca2b23d0ba | 123 | { "target": "MAXWSNENV", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 124 | { "target": "MAX32600MBED", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 125 | { "target": "MAX32620HSP", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 126 | |
marcozecchini | 0:9fca2b23d0ba | 127 | { "target": "SAMR21G18A", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 128 | { "target": "SAMD21J18A", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 129 | { "target": "SAMD21G18A", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 130 | { "target": "SAML21J18A", "toolchains": "GCC_ARM", "libs": ["dsp"] }, |
marcozecchini | 0:9fca2b23d0ba | 131 | |
marcozecchini | 0:9fca2b23d0ba | 132 | { "target": "NUMAKER_PFM_NUC472", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 133 | { "target": "NUMAKER_PFM_M453", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 134 | { "target": "NUMAKER_PFM_M487", "toolchains": "GCC_ARM", "libs": ["dsp", "usb"] }, |
marcozecchini | 0:9fca2b23d0ba | 135 | ) |
marcozecchini | 0:9fca2b23d0ba | 136 | |
marcozecchini | 0:9fca2b23d0ba | 137 | ################################################################################ |
marcozecchini | 0:9fca2b23d0ba | 138 | # Configure example test building (linking against external mbed SDK libraries) |
marcozecchini | 0:9fca2b23d0ba | 139 | |
marcozecchini | 0:9fca2b23d0ba | 140 | linking_list = [ |
marcozecchini | 0:9fca2b23d0ba | 141 | {"target": "LPC1768", |
marcozecchini | 0:9fca2b23d0ba | 142 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 143 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_15", "MBED_16", "MBED_17"], |
marcozecchini | 0:9fca2b23d0ba | 144 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 145 | } |
marcozecchini | 0:9fca2b23d0ba | 146 | }, |
marcozecchini | 0:9fca2b23d0ba | 147 | {"target": "K64F", |
marcozecchini | 0:9fca2b23d0ba | 148 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 149 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 150 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 151 | } |
marcozecchini | 0:9fca2b23d0ba | 152 | }, |
marcozecchini | 0:9fca2b23d0ba | 153 | {"target": "K22F", |
marcozecchini | 0:9fca2b23d0ba | 154 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 155 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 156 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 157 | } |
marcozecchini | 0:9fca2b23d0ba | 158 | }, |
marcozecchini | 0:9fca2b23d0ba | 159 | {"target": "KL43Z", |
marcozecchini | 0:9fca2b23d0ba | 160 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 161 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 162 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 163 | } |
marcozecchini | 0:9fca2b23d0ba | 164 | }, |
marcozecchini | 0:9fca2b23d0ba | 165 | {"target": "NUCLEO_F446RE", |
marcozecchini | 0:9fca2b23d0ba | 166 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 167 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 168 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 169 | } |
marcozecchini | 0:9fca2b23d0ba | 170 | }, |
marcozecchini | 0:9fca2b23d0ba | 171 | {"target": "NUCLEO_F446ZE", |
marcozecchini | 0:9fca2b23d0ba | 172 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 173 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 174 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 175 | } |
marcozecchini | 0:9fca2b23d0ba | 176 | }, |
marcozecchini | 0:9fca2b23d0ba | 177 | {"target": "NUCLEO_F401RE", |
marcozecchini | 0:9fca2b23d0ba | 178 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 179 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 180 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 181 | } |
marcozecchini | 0:9fca2b23d0ba | 182 | }, |
marcozecchini | 0:9fca2b23d0ba | 183 | {"target": "NUCLEO_F411RE", |
marcozecchini | 0:9fca2b23d0ba | 184 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 185 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 186 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 187 | } |
marcozecchini | 0:9fca2b23d0ba | 188 | }, |
marcozecchini | 0:9fca2b23d0ba | 189 | {"target": "NUCLEO_F412ZG", |
marcozecchini | 0:9fca2b23d0ba | 190 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 191 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 192 | } |
marcozecchini | 0:9fca2b23d0ba | 193 | }, |
marcozecchini | 0:9fca2b23d0ba | 194 | {"target": "NUCLEO_F429ZI", |
marcozecchini | 0:9fca2b23d0ba | 195 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 196 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 197 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 198 | } |
marcozecchini | 0:9fca2b23d0ba | 199 | }, |
marcozecchini | 0:9fca2b23d0ba | 200 | {"target": "NUCLEO_F207ZG", |
marcozecchini | 0:9fca2b23d0ba | 201 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 202 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 203 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 204 | } |
marcozecchini | 0:9fca2b23d0ba | 205 | }, |
marcozecchini | 0:9fca2b23d0ba | 206 | {"target": "NUCLEO_F746ZG", |
marcozecchini | 0:9fca2b23d0ba | 207 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 208 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 209 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 210 | } |
marcozecchini | 0:9fca2b23d0ba | 211 | }, |
marcozecchini | 0:9fca2b23d0ba | 212 | {"target": "NUCLEO_F767ZI", |
marcozecchini | 0:9fca2b23d0ba | 213 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 214 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 215 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 216 | } |
marcozecchini | 0:9fca2b23d0ba | 217 | }, |
marcozecchini | 0:9fca2b23d0ba | 218 | {"target": "NUCLEO_L476RG", |
marcozecchini | 0:9fca2b23d0ba | 219 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 220 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 221 | } |
marcozecchini | 0:9fca2b23d0ba | 222 | }, |
marcozecchini | 0:9fca2b23d0ba | 223 | {"target": "DISCO_F429ZI", |
marcozecchini | 0:9fca2b23d0ba | 224 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 225 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 226 | } |
marcozecchini | 0:9fca2b23d0ba | 227 | }, |
marcozecchini | 0:9fca2b23d0ba | 228 | {"target": "DISCO_F407VG", |
marcozecchini | 0:9fca2b23d0ba | 229 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 230 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 231 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 232 | } |
marcozecchini | 0:9fca2b23d0ba | 233 | }, |
marcozecchini | 0:9fca2b23d0ba | 234 | {"target": "DISCO_F413ZH", |
marcozecchini | 0:9fca2b23d0ba | 235 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 236 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 237 | } |
marcozecchini | 0:9fca2b23d0ba | 238 | }, |
marcozecchini | 0:9fca2b23d0ba | 239 | {"target": "NUCLEO_F303ZE", |
marcozecchini | 0:9fca2b23d0ba | 240 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 241 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 242 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 243 | } |
marcozecchini | 0:9fca2b23d0ba | 244 | }, |
marcozecchini | 0:9fca2b23d0ba | 245 | {"target": "DISCO_L475VG_IOT01A", |
marcozecchini | 0:9fca2b23d0ba | 246 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 247 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 248 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 249 | } |
marcozecchini | 0:9fca2b23d0ba | 250 | }, |
marcozecchini | 0:9fca2b23d0ba | 251 | {"target": "DISCO_L476VG", |
marcozecchini | 0:9fca2b23d0ba | 252 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 253 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 254 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 255 | } |
marcozecchini | 0:9fca2b23d0ba | 256 | }, |
marcozecchini | 0:9fca2b23d0ba | 257 | {"target": "DISCO_L072CZ_LRWAN1", |
marcozecchini | 0:9fca2b23d0ba | 258 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 259 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 260 | } |
marcozecchini | 0:9fca2b23d0ba | 261 | }, |
marcozecchini | 0:9fca2b23d0ba | 262 | {"target": "NUMAKER_PFM_NUC472", |
marcozecchini | 0:9fca2b23d0ba | 263 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 264 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 265 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 266 | } |
marcozecchini | 0:9fca2b23d0ba | 267 | }, |
marcozecchini | 0:9fca2b23d0ba | 268 | {"target": "NUMAKER_PFM_M453", |
marcozecchini | 0:9fca2b23d0ba | 269 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 270 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 271 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 272 | } |
marcozecchini | 0:9fca2b23d0ba | 273 | }, |
marcozecchini | 0:9fca2b23d0ba | 274 | {"target": "NUMAKER_PFM_M487", |
marcozecchini | 0:9fca2b23d0ba | 275 | "toolchains": "GCC_ARM", |
marcozecchini | 0:9fca2b23d0ba | 276 | "tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"], |
marcozecchini | 0:9fca2b23d0ba | 277 | "usb" : ["USB_1", "USB_2" ,"USB_3"], |
marcozecchini | 0:9fca2b23d0ba | 278 | } |
marcozecchini | 0:9fca2b23d0ba | 279 | } |
marcozecchini | 0:9fca2b23d0ba | 280 | ] |
marcozecchini | 0:9fca2b23d0ba | 281 | |
marcozecchini | 0:9fca2b23d0ba | 282 | ################################################################################ |
marcozecchini | 0:9fca2b23d0ba | 283 | |
marcozecchini | 0:9fca2b23d0ba | 284 | # Driver |
marcozecchini | 0:9fca2b23d0ba | 285 | |
marcozecchini | 0:9fca2b23d0ba | 286 | def run_builds(dry_run): |
marcozecchini | 0:9fca2b23d0ba | 287 | for build in build_list: |
marcozecchini | 0:9fca2b23d0ba | 288 | toolchain_list = build["toolchains"] |
marcozecchini | 0:9fca2b23d0ba | 289 | if type(toolchain_list) != type([]): toolchain_list = [toolchain_list] |
marcozecchini | 0:9fca2b23d0ba | 290 | for toolchain in toolchain_list: |
marcozecchini | 0:9fca2b23d0ba | 291 | cmdline = "python tools/build.py -m %s -t %s -j 4 -c --silent "% (build["target"], toolchain) |
marcozecchini | 0:9fca2b23d0ba | 292 | libs = build.get("libs", []) |
marcozecchini | 0:9fca2b23d0ba | 293 | if libs: |
marcozecchini | 0:9fca2b23d0ba | 294 | cmdline = cmdline + " ".join(["--" + l for l in libs]) |
marcozecchini | 0:9fca2b23d0ba | 295 | print "Executing: " + cmdline |
marcozecchini | 0:9fca2b23d0ba | 296 | if not dry_run: |
marcozecchini | 0:9fca2b23d0ba | 297 | if os.system(cmdline) != 0: |
marcozecchini | 0:9fca2b23d0ba | 298 | sys.exit(1) |
marcozecchini | 0:9fca2b23d0ba | 299 | |
marcozecchini | 0:9fca2b23d0ba | 300 | |
marcozecchini | 0:9fca2b23d0ba | 301 | def run_test_linking(dry_run): |
marcozecchini | 0:9fca2b23d0ba | 302 | """ Function run make.py commands to build and link simple mbed SDK |
marcozecchini | 0:9fca2b23d0ba | 303 | tests against few libraries to make sure there are no simple linking errors. |
marcozecchini | 0:9fca2b23d0ba | 304 | """ |
marcozecchini | 0:9fca2b23d0ba | 305 | for link in linking_list: |
marcozecchini | 0:9fca2b23d0ba | 306 | toolchain_list = link["toolchains"] |
marcozecchini | 0:9fca2b23d0ba | 307 | if type(toolchain_list) != type([]): |
marcozecchini | 0:9fca2b23d0ba | 308 | toolchain_list = [toolchain_list] |
marcozecchini | 0:9fca2b23d0ba | 309 | for toolchain in toolchain_list: |
marcozecchini | 0:9fca2b23d0ba | 310 | tests = link["tests"] |
marcozecchini | 0:9fca2b23d0ba | 311 | # Call make.py for each test group for particular library |
marcozecchini | 0:9fca2b23d0ba | 312 | for test_lib in tests: |
marcozecchini | 0:9fca2b23d0ba | 313 | test_names = tests[test_lib] |
marcozecchini | 0:9fca2b23d0ba | 314 | test_lib_switch = "--" + test_lib if test_lib else "" |
marcozecchini | 0:9fca2b23d0ba | 315 | cmdline = "python tools/make.py -m %s -t %s -c --silent %s -n %s " % (link["target"], toolchain, test_lib_switch, ",".join(test_names)) |
marcozecchini | 0:9fca2b23d0ba | 316 | print "Executing: " + cmdline |
marcozecchini | 0:9fca2b23d0ba | 317 | if not dry_run: |
marcozecchini | 0:9fca2b23d0ba | 318 | if os.system(cmdline) != 0: |
marcozecchini | 0:9fca2b23d0ba | 319 | sys.exit(1) |
marcozecchini | 0:9fca2b23d0ba | 320 | |
marcozecchini | 0:9fca2b23d0ba | 321 | def run_test_testsuite(dry_run): |
marcozecchini | 0:9fca2b23d0ba | 322 | cmdline = "python tools/singletest.py --version" |
marcozecchini | 0:9fca2b23d0ba | 323 | print "Executing: " + cmdline |
marcozecchini | 0:9fca2b23d0ba | 324 | if not dry_run: |
marcozecchini | 0:9fca2b23d0ba | 325 | if os.system(cmdline) != 0: |
marcozecchini | 0:9fca2b23d0ba | 326 | sys.exit(1) |
marcozecchini | 0:9fca2b23d0ba | 327 | |
marcozecchini | 0:9fca2b23d0ba | 328 | if __name__ == "__main__": |
marcozecchini | 0:9fca2b23d0ba | 329 | run_builds("-s" in sys.argv) |
marcozecchini | 0:9fca2b23d0ba | 330 | run_test_linking("-s" in sys.argv) |
marcozecchini | 0:9fca2b23d0ba | 331 | run_test_testsuite("-s" in sys.argv) |