nkjnm
Dependencies: MAX44000 nexpaq_mdk
Fork of LED_Demo by
mbd_os/tools/export_test.py@7:3a65ef12ba31, 2016-11-04 (annotated)
- Committer:
- nitsshukla
- Date:
- Fri Nov 04 12:06:04 2016 +0000
- Revision:
- 7:3a65ef12ba31
- Parent:
- 1:55a6170b404f
kghj;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nexpaq | 1:55a6170b404f | 1 | #!/usr/bin/env python |
nexpaq | 1:55a6170b404f | 2 | """ |
nexpaq | 1:55a6170b404f | 3 | mbed SDK |
nexpaq | 1:55a6170b404f | 4 | Copyright (c) 2011-2013 ARM Limited |
nexpaq | 1:55a6170b404f | 5 | |
nexpaq | 1:55a6170b404f | 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
nexpaq | 1:55a6170b404f | 7 | you may not use this file except in compliance with the License. |
nexpaq | 1:55a6170b404f | 8 | You may obtain a copy of the License at |
nexpaq | 1:55a6170b404f | 9 | |
nexpaq | 1:55a6170b404f | 10 | http://www.apache.org/licenses/LICENSE-2.0 |
nexpaq | 1:55a6170b404f | 11 | |
nexpaq | 1:55a6170b404f | 12 | Unless required by applicable law or agreed to in writing, software |
nexpaq | 1:55a6170b404f | 13 | distributed under the License is distributed on an "AS IS" BASIS, |
nexpaq | 1:55a6170b404f | 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
nexpaq | 1:55a6170b404f | 15 | See the License for the specific language governing permissions and |
nexpaq | 1:55a6170b404f | 16 | limitations under the License. |
nexpaq | 1:55a6170b404f | 17 | """ |
nexpaq | 1:55a6170b404f | 18 | import sys |
nexpaq | 1:55a6170b404f | 19 | from os.path import join, abspath, dirname, exists |
nexpaq | 1:55a6170b404f | 20 | ROOT = abspath(join(dirname(__file__), "..")) |
nexpaq | 1:55a6170b404f | 21 | sys.path.insert(0, ROOT) |
nexpaq | 1:55a6170b404f | 22 | |
nexpaq | 1:55a6170b404f | 23 | from shutil import move |
nexpaq | 1:55a6170b404f | 24 | |
nexpaq | 1:55a6170b404f | 25 | from tools.paths import * |
nexpaq | 1:55a6170b404f | 26 | from tools.utils import mkdir, cmd |
nexpaq | 1:55a6170b404f | 27 | from tools.export import export, setup_user_prj |
nexpaq | 1:55a6170b404f | 28 | |
nexpaq | 1:55a6170b404f | 29 | |
nexpaq | 1:55a6170b404f | 30 | USR_PRJ_NAME = "usr_prj" |
nexpaq | 1:55a6170b404f | 31 | USER_PRJ = join(EXPORT_WORKSPACE, USR_PRJ_NAME) |
nexpaq | 1:55a6170b404f | 32 | USER_SRC = join(USER_PRJ, "src") |
nexpaq | 1:55a6170b404f | 33 | |
nexpaq | 1:55a6170b404f | 34 | |
nexpaq | 1:55a6170b404f | 35 | def setup_test_user_prj(): |
nexpaq | 1:55a6170b404f | 36 | if exists(USER_PRJ): |
nexpaq | 1:55a6170b404f | 37 | print 'Test user project already generated...' |
nexpaq | 1:55a6170b404f | 38 | return |
nexpaq | 1:55a6170b404f | 39 | |
nexpaq | 1:55a6170b404f | 40 | setup_user_prj(USER_PRJ, join(TEST_DIR, "rtos", "mbed", "basic"), [join(ROOT, "rtos"), join(LIB_DIR, "tests", "mbed", "env")]) |
nexpaq | 1:55a6170b404f | 41 | |
nexpaq | 1:55a6170b404f | 42 | # FAKE BUILD URL |
nexpaq | 1:55a6170b404f | 43 | open(join(USER_SRC, "mbed.bld"), 'w').write("http://mbed.org/users/mbed_official/code/mbed/builds/976df7c37ad5\n") |
nexpaq | 1:55a6170b404f | 44 | |
nexpaq | 1:55a6170b404f | 45 | |
nexpaq | 1:55a6170b404f | 46 | def fake_build_url_resolver(url): |
nexpaq | 1:55a6170b404f | 47 | # FAKE BUILD URL: Ignore the URL, always return the path to the mbed library |
nexpaq | 1:55a6170b404f | 48 | return {'path':MBED_LIBRARIES, 'name':'mbed'} |
nexpaq | 1:55a6170b404f | 49 | |
nexpaq | 1:55a6170b404f | 50 | |
nexpaq | 1:55a6170b404f | 51 | def test_export(toolchain, target, expected_error=None): |
nexpaq | 1:55a6170b404f | 52 | if toolchain is None and target is None: |
nexpaq | 1:55a6170b404f | 53 | base_dir = join(EXPORT_TMP, "zip") |
nexpaq | 1:55a6170b404f | 54 | else: |
nexpaq | 1:55a6170b404f | 55 | base_dir = join(EXPORT_TMP, toolchain, target) |
nexpaq | 1:55a6170b404f | 56 | temp_dir = join(base_dir, "temp") |
nexpaq | 1:55a6170b404f | 57 | mkdir(temp_dir) |
nexpaq | 1:55a6170b404f | 58 | |
nexpaq | 1:55a6170b404f | 59 | zip_path, report = export(USER_PRJ, USR_PRJ_NAME, toolchain, target, base_dir, temp_dir, False, None, fake_build_url_resolver) |
nexpaq | 1:55a6170b404f | 60 | |
nexpaq | 1:55a6170b404f | 61 | if report['success']: |
nexpaq | 1:55a6170b404f | 62 | move(zip_path, join(EXPORT_DIR, "export_%s_%s.zip" % (toolchain, target))) |
nexpaq | 1:55a6170b404f | 63 | print "[OK]" |
nexpaq | 1:55a6170b404f | 64 | else: |
nexpaq | 1:55a6170b404f | 65 | if expected_error is None: |
nexpaq | 1:55a6170b404f | 66 | print '[ERRROR] %s' % report['errormsg'] |
nexpaq | 1:55a6170b404f | 67 | else: |
nexpaq | 1:55a6170b404f | 68 | if (zip_path is None) and (expected_error in report['errormsg']): |
nexpaq | 1:55a6170b404f | 69 | print '[OK]' |
nexpaq | 1:55a6170b404f | 70 | else: |
nexpaq | 1:55a6170b404f | 71 | print '[ERROR]' |
nexpaq | 1:55a6170b404f | 72 | print ' zip:', zip_path |
nexpaq | 1:55a6170b404f | 73 | print ' msg:', report['errormsg'] |
nexpaq | 1:55a6170b404f | 74 | |
nexpaq | 1:55a6170b404f | 75 | |
nexpaq | 1:55a6170b404f | 76 | if __name__ == '__main__': |
nexpaq | 1:55a6170b404f | 77 | setup_test_user_prj() |
nexpaq | 1:55a6170b404f | 78 | |
nexpaq | 1:55a6170b404f | 79 | for toolchain, target in [ |
nexpaq | 1:55a6170b404f | 80 | ('zip', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 81 | |
nexpaq | 1:55a6170b404f | 82 | ('emblocks', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 83 | ('emblocks', 'LPC1549'), |
nexpaq | 1:55a6170b404f | 84 | ('emblocks', 'LPC1114'), |
nexpaq | 1:55a6170b404f | 85 | ('emblocks', 'LPC11U35_401'), |
nexpaq | 1:55a6170b404f | 86 | ('emblocks', 'LPC11U35_501'), |
nexpaq | 1:55a6170b404f | 87 | ('emblocks', 'LPCCAPPUCCINO'), |
nexpaq | 1:55a6170b404f | 88 | ('emblocks', 'LPC2368'), |
nexpaq | 1:55a6170b404f | 89 | ('emblocks', 'STM32F407'), |
nexpaq | 1:55a6170b404f | 90 | ('emblocks', 'DISCO_F100RB'), |
nexpaq | 1:55a6170b404f | 91 | ('emblocks', 'DISCO_F051R8'), |
nexpaq | 1:55a6170b404f | 92 | ('emblocks', 'DISCO_F407VG'), |
nexpaq | 1:55a6170b404f | 93 | ('emblocks', 'DISCO_F303VC'), |
nexpaq | 1:55a6170b404f | 94 | ('emblocks', 'NRF51822'), |
nexpaq | 1:55a6170b404f | 95 | ('emblocks', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 96 | ('emblocks', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 97 | ('emblocks', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 98 | ('emblocks', 'MTS_MDOT_F405RG'), |
nexpaq | 1:55a6170b404f | 99 | ('emblocks', 'MTS_MDOT_F411RE'), |
nexpaq | 1:55a6170b404f | 100 | |
nexpaq | 1:55a6170b404f | 101 | ('coide', 'KL05Z'), |
nexpaq | 1:55a6170b404f | 102 | ('coide', 'KL25Z'), |
nexpaq | 1:55a6170b404f | 103 | ('coide', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 104 | ('coide', 'ARCH_PRO'), |
nexpaq | 1:55a6170b404f | 105 | ('coide', 'DISCO_F407VG'), |
nexpaq | 1:55a6170b404f | 106 | ('coide', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 107 | ('coide', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 108 | ('coide', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 109 | ('coide', 'DISCO_F429ZI'), |
nexpaq | 1:55a6170b404f | 110 | ('coide', 'NUCLEO_F429ZI'), |
nexpaq | 1:55a6170b404f | 111 | #('coide', 'DISCO_F469NI'), removed because template not available |
nexpaq | 1:55a6170b404f | 112 | ('coide', 'NUCLEO_F334R8'), |
nexpaq | 1:55a6170b404f | 113 | ('coide', 'NUCLEO_F303ZE'), |
nexpaq | 1:55a6170b404f | 114 | ('coide', 'MTS_MDOT_F405RG'), |
nexpaq | 1:55a6170b404f | 115 | ('coide', 'MTS_MDOT_F411RE'), |
nexpaq | 1:55a6170b404f | 116 | |
nexpaq | 1:55a6170b404f | 117 | ('uvision', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 118 | ('uvision', 'LPC11U24'), |
nexpaq | 1:55a6170b404f | 119 | ('uvision', 'LPC11U35_401'), |
nexpaq | 1:55a6170b404f | 120 | ('uvision', 'LPC11U35_501'), |
nexpaq | 1:55a6170b404f | 121 | ('uvision', 'KL25Z'), |
nexpaq | 1:55a6170b404f | 122 | ('uvision', 'LPC1347'), |
nexpaq | 1:55a6170b404f | 123 | ('uvision', 'LPC1114'), |
nexpaq | 1:55a6170b404f | 124 | ('uvision', 'LPC4088'), |
nexpaq | 1:55a6170b404f | 125 | ('uvision', 'LPC4088_DM'), |
nexpaq | 1:55a6170b404f | 126 | ('uvision', 'LPC4337'), |
nexpaq | 1:55a6170b404f | 127 | ('uvision', 'LPC824'), |
nexpaq | 1:55a6170b404f | 128 | ('uvision', 'SSCI824'), |
nexpaq | 1:55a6170b404f | 129 | ('uvision', 'HRM1017'), |
nexpaq | 1:55a6170b404f | 130 | |
nexpaq | 1:55a6170b404f | 131 | ('uvision', 'B96B_F446VE'), |
nexpaq | 1:55a6170b404f | 132 | ('uvision', 'NUCLEO_F030R8'), |
nexpaq | 1:55a6170b404f | 133 | ('uvision', 'NUCLEO_F031K6'), |
nexpaq | 1:55a6170b404f | 134 | ('uvision', 'NUCLEO_F042K6'), |
nexpaq | 1:55a6170b404f | 135 | ('uvision', 'NUCLEO_F070RB'), |
nexpaq | 1:55a6170b404f | 136 | ('uvision', 'NUCLEO_F072RB'), |
nexpaq | 1:55a6170b404f | 137 | ('uvision', 'NUCLEO_F091RC'), |
nexpaq | 1:55a6170b404f | 138 | ('uvision', 'NUCLEO_F103RB'), |
nexpaq | 1:55a6170b404f | 139 | ('uvision', 'NUCLEO_F302R8'), |
nexpaq | 1:55a6170b404f | 140 | ('uvision', 'NUCLEO_F303K8'), |
nexpaq | 1:55a6170b404f | 141 | ('uvision', 'NUCLEO_F303RE'), |
nexpaq | 1:55a6170b404f | 142 | ('uvision', 'NUCLEO_F334R8'), |
nexpaq | 1:55a6170b404f | 143 | ('uvision', 'NUCLEO_F303ZE'), |
nexpaq | 1:55a6170b404f | 144 | ('uvision', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 145 | ('uvision', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 146 | ('uvision', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 147 | ('uvision', 'NUCLEO_F429ZI'), |
nexpaq | 1:55a6170b404f | 148 | ('uvision', 'NUCLEO_F446RE'), |
nexpaq | 1:55a6170b404f | 149 | ('uvision', 'NUCLEO_F446ZE'), |
nexpaq | 1:55a6170b404f | 150 | ('uvision', 'NUCLEO_L011K4'), |
nexpaq | 1:55a6170b404f | 151 | ('uvision', 'NUCLEO_L031K6'), |
nexpaq | 1:55a6170b404f | 152 | ('uvision', 'NUCLEO_L053R8'), |
nexpaq | 1:55a6170b404f | 153 | ('uvision', 'NUCLEO_L073RZ'), |
nexpaq | 1:55a6170b404f | 154 | ('uvision', 'NUCLEO_L152RE'), |
nexpaq | 1:55a6170b404f | 155 | ('uvision', 'NUCLEO_L432KC'), |
nexpaq | 1:55a6170b404f | 156 | ('uvision', 'NUCLEO_L476RG'), |
nexpaq | 1:55a6170b404f | 157 | ('uvision', 'MTS_MDOT_F405RG'), |
nexpaq | 1:55a6170b404f | 158 | ('uvision', 'MAXWSNENV'), |
nexpaq | 1:55a6170b404f | 159 | ('uvision', 'MAX32600MBED'), |
nexpaq | 1:55a6170b404f | 160 | ('uvision', 'MAX32620HSP'), |
nexpaq | 1:55a6170b404f | 161 | ('uvision', 'DISCO_F051R8'), |
nexpaq | 1:55a6170b404f | 162 | ('uvision', 'DISCO_F103RB'), |
nexpaq | 1:55a6170b404f | 163 | ('uvision', 'DISCO_F303VC'), |
nexpaq | 1:55a6170b404f | 164 | ('uvision', 'DISCO_L053C8'), |
nexpaq | 1:55a6170b404f | 165 | ('uvision', 'DISCO_F334C8'), |
nexpaq | 1:55a6170b404f | 166 | ('uvision', 'DISCO_F407VG'), |
nexpaq | 1:55a6170b404f | 167 | ('uvision', 'DISCO_F429ZI'), |
nexpaq | 1:55a6170b404f | 168 | ('uvision', 'DISCO_F746NG'), |
nexpaq | 1:55a6170b404f | 169 | ('uvision', 'DISCO_F469NI'), |
nexpaq | 1:55a6170b404f | 170 | ('uvision', 'DISCO_L476VG'), |
nexpaq | 1:55a6170b404f | 171 | ('uvision', 'MOTE_L152RC'), |
nexpaq | 1:55a6170b404f | 172 | ('uvision', 'ARM_BEETLE_SOC'), |
nexpaq | 1:55a6170b404f | 173 | |
nexpaq | 1:55a6170b404f | 174 | ('lpcxpresso', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 175 | ('lpcxpresso', 'LPC4088'), |
nexpaq | 1:55a6170b404f | 176 | ('lpcxpresso', 'LPC4088_DM'), |
nexpaq | 1:55a6170b404f | 177 | ('lpcxpresso', 'LPC1114'), |
nexpaq | 1:55a6170b404f | 178 | ('lpcxpresso', 'LPC11U35_401'), |
nexpaq | 1:55a6170b404f | 179 | ('lpcxpresso', 'LPC11U35_501'), |
nexpaq | 1:55a6170b404f | 180 | ('lpcxpresso', 'LPCCAPPUCCINO'), |
nexpaq | 1:55a6170b404f | 181 | ('lpcxpresso', 'LPC1549'), |
nexpaq | 1:55a6170b404f | 182 | ('lpcxpresso', 'LPC11U68'), |
nexpaq | 1:55a6170b404f | 183 | |
nexpaq | 1:55a6170b404f | 184 | # Linux path: /home/emimon01/bin/gcc-arm/bin/ |
nexpaq | 1:55a6170b404f | 185 | # Windows path: C:/arm-none-eabi-gcc-4_7/bin/ |
nexpaq | 1:55a6170b404f | 186 | ('gcc_arm', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 187 | ('gcc_arm', 'LPC4088_DM'), |
nexpaq | 1:55a6170b404f | 188 | ('gcc_arm', 'LPC1549'), |
nexpaq | 1:55a6170b404f | 189 | ('gcc_arm', 'LPC1114'), |
nexpaq | 1:55a6170b404f | 190 | ('gcc_arm', 'LPC11U35_401'), |
nexpaq | 1:55a6170b404f | 191 | ('gcc_arm', 'LPC11U35_501'), |
nexpaq | 1:55a6170b404f | 192 | ('gcc_arm', 'LPCCAPPUCCINO'), |
nexpaq | 1:55a6170b404f | 193 | ('gcc_arm', 'LPC2368'), |
nexpaq | 1:55a6170b404f | 194 | ('gcc_arm', 'LPC2460'), |
nexpaq | 1:55a6170b404f | 195 | ('gcc_arm', 'LPC824'), |
nexpaq | 1:55a6170b404f | 196 | ('gcc_arm', 'SSCI824'), |
nexpaq | 1:55a6170b404f | 197 | |
nexpaq | 1:55a6170b404f | 198 | ('gcc_arm', 'B96B_F446VE'), |
nexpaq | 1:55a6170b404f | 199 | ('gcc_arm', 'STM32F407'), |
nexpaq | 1:55a6170b404f | 200 | ('gcc_arm', 'DISCO_F100RB'), |
nexpaq | 1:55a6170b404f | 201 | ('gcc_arm', 'DISCO_F051R8'), |
nexpaq | 1:55a6170b404f | 202 | ('gcc_arm', 'DISCO_F407VG'), |
nexpaq | 1:55a6170b404f | 203 | ('gcc_arm', 'DISCO_F303VC'), |
nexpaq | 1:55a6170b404f | 204 | ('gcc_arm', 'DISCO_L053C8'), |
nexpaq | 1:55a6170b404f | 205 | ('gcc_arm', 'DISCO_F334C8'), |
nexpaq | 1:55a6170b404f | 206 | ('gcc_arm', 'DISCO_L053C8'), |
nexpaq | 1:55a6170b404f | 207 | ('gcc_arm', 'DISCO_F429ZI'), |
nexpaq | 1:55a6170b404f | 208 | ('gcc_arm', 'DISCO_F746NG'), |
nexpaq | 1:55a6170b404f | 209 | ('gcc_arm', 'NUCLEO_F031K6'), |
nexpaq | 1:55a6170b404f | 210 | ('gcc_arm', 'NUCLEO_F042K6'), |
nexpaq | 1:55a6170b404f | 211 | ('gcc_arm', 'NRF51822'), |
nexpaq | 1:55a6170b404f | 212 | ('gcc_arm', 'RBLAB_BLENANO'), |
nexpaq | 1:55a6170b404f | 213 | ('gcc_arm', 'HRM1017'), |
nexpaq | 1:55a6170b404f | 214 | ('gcc_arm', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 215 | ('gcc_arm', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 216 | ('gcc_arm', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 217 | ('gcc_arm', 'NUCLEO_F429ZI'), |
nexpaq | 1:55a6170b404f | 218 | ('gcc_arm', 'NUCLEO_F446RE'), |
nexpaq | 1:55a6170b404f | 219 | ('gcc_arm', 'NUCLEO_F446ZE'), |
nexpaq | 1:55a6170b404f | 220 | ('gcc_arm', 'NUCLEO_F303ZE'), |
nexpaq | 1:55a6170b404f | 221 | ('gcc_arm', 'ELMO_F411RE'), |
nexpaq | 1:55a6170b404f | 222 | ('gcc_arm', 'DISCO_F469NI'), |
nexpaq | 1:55a6170b404f | 223 | ('gcc_arm', 'NUCLEO_F334R8'), |
nexpaq | 1:55a6170b404f | 224 | ('gcc_arm', 'NUCLEO_L011K4'), |
nexpaq | 1:55a6170b404f | 225 | ('gcc_arm', 'NUCLEO_L031K6'), |
nexpaq | 1:55a6170b404f | 226 | ('gcc_arm', 'NUCLEO_L432KC'), |
nexpaq | 1:55a6170b404f | 227 | ('gcc_arm', 'MAX32600MBED'), |
nexpaq | 1:55a6170b404f | 228 | ('gcc_arm', 'MTS_MDOT_F405RG'), |
nexpaq | 1:55a6170b404f | 229 | ('gcc_arm', 'MTS_MDOT_F411RE'), |
nexpaq | 1:55a6170b404f | 230 | ('gcc_arm', 'RZ_A1H'), |
nexpaq | 1:55a6170b404f | 231 | ('gcc_arm', 'MAXWSNENV'), |
nexpaq | 1:55a6170b404f | 232 | ('gcc_arm', 'MAX32600MBED'), |
nexpaq | 1:55a6170b404f | 233 | ('gcc_arm', 'MAX32620HSP'), |
nexpaq | 1:55a6170b404f | 234 | ('gcc_arm', 'ARCH_BLE'), |
nexpaq | 1:55a6170b404f | 235 | ('gcc_arm', 'ARCH_MAX'), |
nexpaq | 1:55a6170b404f | 236 | ('gcc_arm', 'ARCH_PRO'), |
nexpaq | 1:55a6170b404f | 237 | ('gcc_arm', 'DELTA_DFCM_NNN40'), |
nexpaq | 1:55a6170b404f | 238 | ('gcc_arm', 'K20D50M'), |
nexpaq | 1:55a6170b404f | 239 | ('gcc_arm', 'K22F'), |
nexpaq | 1:55a6170b404f | 240 | ('gcc_arm', 'K64F'), |
nexpaq | 1:55a6170b404f | 241 | ('gcc_arm', 'KL05Z'), |
nexpaq | 1:55a6170b404f | 242 | ('gcc_arm', 'KL25Z'), |
nexpaq | 1:55a6170b404f | 243 | ('gcc_arm', 'KL43Z'), |
nexpaq | 1:55a6170b404f | 244 | ('gcc_arm', 'KL46Z'), |
nexpaq | 1:55a6170b404f | 245 | ('gcc_arm', 'EFM32GG_STK3700'), |
nexpaq | 1:55a6170b404f | 246 | ('gcc_arm', 'EFM32LG_STK3600'), |
nexpaq | 1:55a6170b404f | 247 | ('gcc_arm', 'EFM32WG_STK3800'), |
nexpaq | 1:55a6170b404f | 248 | ('gcc_arm', 'EFM32ZG_STK3200'), |
nexpaq | 1:55a6170b404f | 249 | ('gcc_arm', 'EFM32HG_STK3400'), |
nexpaq | 1:55a6170b404f | 250 | ('gcc_arm', 'EFM32PG_STK3401'), |
nexpaq | 1:55a6170b404f | 251 | |
nexpaq | 1:55a6170b404f | 252 | ('ds5_5', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 253 | ('ds5_5', 'LPC11U24'), |
nexpaq | 1:55a6170b404f | 254 | ('ds5_5', 'RZ_A1H'), |
nexpaq | 1:55a6170b404f | 255 | |
nexpaq | 1:55a6170b404f | 256 | ('iar', 'LPC1768'), |
nexpaq | 1:55a6170b404f | 257 | ('iar', 'LPC4088_DM'), |
nexpaq | 1:55a6170b404f | 258 | ('iar', 'LPC1347'), |
nexpaq | 1:55a6170b404f | 259 | |
nexpaq | 1:55a6170b404f | 260 | ('iar', 'B96B_F446VE'), |
nexpaq | 1:55a6170b404f | 261 | ('iar', 'NUCLEO_F030R8'), |
nexpaq | 1:55a6170b404f | 262 | ('iar', 'NUCLEO_F031K6'), |
nexpaq | 1:55a6170b404f | 263 | ('iar', 'NUCLEO_F042K6'), |
nexpaq | 1:55a6170b404f | 264 | ('iar', 'NUCLEO_F070RB'), |
nexpaq | 1:55a6170b404f | 265 | ('iar', 'NUCLEO_F072RB'), |
nexpaq | 1:55a6170b404f | 266 | ('iar', 'NUCLEO_F091RC'), |
nexpaq | 1:55a6170b404f | 267 | ('iar', 'NUCLEO_F302R8'), |
nexpaq | 1:55a6170b404f | 268 | ('iar', 'NUCLEO_F303K8'), |
nexpaq | 1:55a6170b404f | 269 | ('iar', 'NUCLEO_F303RE'), |
nexpaq | 1:55a6170b404f | 270 | ('iar', 'NUCLEO_F334R8'), |
nexpaq | 1:55a6170b404f | 271 | ('iar', 'NUCLEO_F303ZE'), |
nexpaq | 1:55a6170b404f | 272 | ('iar', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 273 | ('iar', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 274 | ('iar', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 275 | ('iar', 'NUCLEO_F429ZI'), |
nexpaq | 1:55a6170b404f | 276 | ('iar', 'NUCLEO_F446RE'), |
nexpaq | 1:55a6170b404f | 277 | ('iar', 'NUCLEO_F446ZE'), |
nexpaq | 1:55a6170b404f | 278 | ('iar', 'NUCLEO_L011K4'), |
nexpaq | 1:55a6170b404f | 279 | ('iar', 'NUCLEO_L031K6'), |
nexpaq | 1:55a6170b404f | 280 | ('iar', 'NUCLEO_L053R8'), |
nexpaq | 1:55a6170b404f | 281 | ('iar', 'NUCLEO_L073RZ'), |
nexpaq | 1:55a6170b404f | 282 | ('iar', 'NUCLEO_L152RE'), |
nexpaq | 1:55a6170b404f | 283 | ('iar', 'NUCLEO_L432KC'), |
nexpaq | 1:55a6170b404f | 284 | ('iar', 'NUCLEO_L476RG'), |
nexpaq | 1:55a6170b404f | 285 | ('iar', 'DISCO_L053C8'), |
nexpaq | 1:55a6170b404f | 286 | ('iar', 'DISCO_F334C8'), |
nexpaq | 1:55a6170b404f | 287 | ('iar', 'DISCO_F429ZI'), |
nexpaq | 1:55a6170b404f | 288 | ('iar', 'DISCO_F469NI'), |
nexpaq | 1:55a6170b404f | 289 | ('iar', 'DISCO_F746NG'), |
nexpaq | 1:55a6170b404f | 290 | ('iar', 'DISCO_L476VG'), |
nexpaq | 1:55a6170b404f | 291 | ('iar', 'STM32F407'), |
nexpaq | 1:55a6170b404f | 292 | ('iar', 'MTS_MDOT_F405RG'), |
nexpaq | 1:55a6170b404f | 293 | ('iar', 'MTS_MDOT_F411RE'), |
nexpaq | 1:55a6170b404f | 294 | ('iar', 'MAXWSNENV'), |
nexpaq | 1:55a6170b404f | 295 | ('iar', 'MAX32600MBED'), |
nexpaq | 1:55a6170b404f | 296 | ('iar', 'MAX32620HSP'), |
nexpaq | 1:55a6170b404f | 297 | ('iar', 'MOTE_L152RC'), |
nexpaq | 1:55a6170b404f | 298 | ('iar', 'RZ_A1H'), |
nexpaq | 1:55a6170b404f | 299 | |
nexpaq | 1:55a6170b404f | 300 | # ('sw4stm32', 'DISCO_F051R8'), |
nexpaq | 1:55a6170b404f | 301 | # ('sw4stm32', 'DISCO_F100RB'), |
nexpaq | 1:55a6170b404f | 302 | ('sw4stm32', 'DISCO_F303VC'), |
nexpaq | 1:55a6170b404f | 303 | ('sw4stm32', 'DISCO_F334C8'), |
nexpaq | 1:55a6170b404f | 304 | # ('sw4stm32', 'DISCO_F401VC'), |
nexpaq | 1:55a6170b404f | 305 | ('sw4stm32', 'DISCO_F407VG'), |
nexpaq | 1:55a6170b404f | 306 | ('sw4stm32', 'DISCO_F429ZI'), |
nexpaq | 1:55a6170b404f | 307 | ('sw4stm32', 'DISCO_F469NI'), |
nexpaq | 1:55a6170b404f | 308 | ('sw4stm32', 'DISCO_F746NG'), |
nexpaq | 1:55a6170b404f | 309 | ('sw4stm32', 'DISCO_L053C8'), |
nexpaq | 1:55a6170b404f | 310 | ('sw4stm32', 'DISCO_L476VG'), |
nexpaq | 1:55a6170b404f | 311 | ('sw4stm32', 'NUCLEO_F030R8'), |
nexpaq | 1:55a6170b404f | 312 | ('sw4stm32', 'NUCLEO_F031K6'), |
nexpaq | 1:55a6170b404f | 313 | ('sw4stm32', 'NUCLEO_F042K6'), |
nexpaq | 1:55a6170b404f | 314 | ('sw4stm32', 'NUCLEO_F070RB'), |
nexpaq | 1:55a6170b404f | 315 | ('sw4stm32', 'NUCLEO_F072RB'), |
nexpaq | 1:55a6170b404f | 316 | ('sw4stm32', 'NUCLEO_F091RC'), |
nexpaq | 1:55a6170b404f | 317 | ('sw4stm32', 'NUCLEO_F103RB'), |
nexpaq | 1:55a6170b404f | 318 | ('sw4stm32', 'NUCLEO_F302R8'), |
nexpaq | 1:55a6170b404f | 319 | ('sw4stm32', 'NUCLEO_F303K8'), |
nexpaq | 1:55a6170b404f | 320 | ('sw4stm32', 'NUCLEO_F303RE'), |
nexpaq | 1:55a6170b404f | 321 | ('sw4stm32', 'NUCLEO_F334R8'), |
nexpaq | 1:55a6170b404f | 322 | ('sw4stm32', 'NUCLEO_F401RE'), |
nexpaq | 1:55a6170b404f | 323 | ('sw4stm32', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 324 | ('sw4stm32', 'NUCLEO_F411RE'), |
nexpaq | 1:55a6170b404f | 325 | ('sw4stm32', 'NUCLEO_F429ZI'), |
nexpaq | 1:55a6170b404f | 326 | ('sw4stm32', 'NUCLEO_F446RE'), |
nexpaq | 1:55a6170b404f | 327 | ('sw4stm32', 'NUCLEO_F446ZE'), |
nexpaq | 1:55a6170b404f | 328 | ('sw4stm32', 'NUCLEO_L011K4'), |
nexpaq | 1:55a6170b404f | 329 | ('sw4stm32', 'NUCLEO_L053R8'), |
nexpaq | 1:55a6170b404f | 330 | ('sw4stm32', 'NUCLEO_L073RZ'), |
nexpaq | 1:55a6170b404f | 331 | ('sw4stm32', 'NUCLEO_L152RE'), |
nexpaq | 1:55a6170b404f | 332 | ('sw4stm32', 'NUCLEO_L432KC'), |
nexpaq | 1:55a6170b404f | 333 | ('sw4stm32', 'NUCLEO_L476RG'), |
nexpaq | 1:55a6170b404f | 334 | ('sw4stm32', 'NUCLEO_F031K6'), |
nexpaq | 1:55a6170b404f | 335 | ('sw4stm32', 'NUCLEO_F042K6'), |
nexpaq | 1:55a6170b404f | 336 | ('sw4stm32', 'NUCLEO_F303ZE'), |
nexpaq | 1:55a6170b404f | 337 | ('sw4stm32', 'NUCLEO_F410RB'), |
nexpaq | 1:55a6170b404f | 338 | |
nexpaq | 1:55a6170b404f | 339 | ('e2studio', 'RZ_A1H'), |
nexpaq | 1:55a6170b404f | 340 | # Removed following item to avoid script error |
nexpaq | 1:55a6170b404f | 341 | #(None, None), |
nexpaq | 1:55a6170b404f | 342 | ]: |
nexpaq | 1:55a6170b404f | 343 | print '\n=== Exporting to "%s::%s" ===' % (toolchain, target) |
nexpaq | 1:55a6170b404f | 344 | test_export(toolchain, target) |
nexpaq | 1:55a6170b404f | 345 | |
nexpaq | 1:55a6170b404f | 346 | print "\n=== Test error messages ===" |
nexpaq | 1:55a6170b404f | 347 | test_export('lpcxpresso', 'LPC11U24', expected_error='lpcxpresso') |