Manuel Pégourié-Gonnard | 77d56bb | 2015-07-28 15:00:37 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Do test builds of the yotta module for all supported targets |
| 4 | |
| 5 | set -eu |
| 6 | |
| 7 | yotta/create-module.sh |
| 8 | cd yotta/module |
Manuel Pégourié-Gonnard | 2f056a0 | 2015-09-18 14:37:54 +0200 | [diff] [blame] | 9 | yt update || true # needs network |
Manuel Pégourié-Gonnard | 77d56bb | 2015-07-28 15:00:37 +0200 | [diff] [blame] | 10 | |
| 11 | yotta_build() |
| 12 | { |
| 13 | TARGET=$1 |
| 14 | echo; echo "*** $TARGET ***" |
| 15 | yt target $TARGET |
| 16 | yt build |
| 17 | } |
| 18 | |
| 19 | if uname -a | grep 'Linux.*x86' >/dev/null; then |
| 20 | yotta_build x86-linux-native |
| 21 | fi |
| 22 | if uname -a | grep 'Darwin.*x86' >/dev/null; then |
| 23 | yotta_build x86-osx-native |
| 24 | fi |
| 25 | if which armcc >/dev/null && armcc --help >/dev/null 2>&1; then |
| 26 | yotta_build frdm-k64f-armcc |
| 27 | #yotta_build nordic-nrf51822-16k-armcc |
| 28 | fi |
| 29 | if which arm-none-eabi-gcc >/dev/null; then |
| 30 | yotta_build frdm-k64f-gcc |
| 31 | #yotta_build st-nucleo-f401re-gcc # dirent |
| 32 | #yotta_build stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4 |
| 33 | #yotta_build nordic-nrf51822-16k-gcc # fails in minar-platform |
| 34 | #yotta_build bbc-microbit-classic-gcc # fails in minar-platform |
| 35 | #yotta_build st-stm32f439zi-gcc # fails in mbed-hal-st-stm32f4 |
| 36 | #yotta_build st-stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4 |
| 37 | fi |