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 |
Manuel Pégourié-Gonnard | f10f85f | 2016-01-08 15:02:05 +0100 | [diff] [blame^] | 14 | |
| 15 | echo; echo "*** $TARGET (release) ***" |
Manuel Pégourié-Gonnard | d13585f | 2015-10-30 11:15:40 +0100 | [diff] [blame] | 16 | yt -t $TARGET build |
Manuel Pégourié-Gonnard | f10f85f | 2016-01-08 15:02:05 +0100 | [diff] [blame^] | 17 | |
| 18 | echo; echo "*** $TARGET (debug) ***" |
| 19 | yt -t $TARGET build -d |
Manuel Pégourié-Gonnard | 77d56bb | 2015-07-28 15:00:37 +0200 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | if uname -a | grep 'Linux.*x86' >/dev/null; then |
| 23 | yotta_build x86-linux-native |
| 24 | fi |
| 25 | if uname -a | grep 'Darwin.*x86' >/dev/null; then |
| 26 | yotta_build x86-osx-native |
| 27 | fi |
| 28 | if which armcc >/dev/null && armcc --help >/dev/null 2>&1; then |
| 29 | yotta_build frdm-k64f-armcc |
| 30 | #yotta_build nordic-nrf51822-16k-armcc |
| 31 | fi |
| 32 | if which arm-none-eabi-gcc >/dev/null; then |
| 33 | yotta_build frdm-k64f-gcc |
| 34 | #yotta_build st-nucleo-f401re-gcc # dirent |
| 35 | #yotta_build stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4 |
| 36 | #yotta_build nordic-nrf51822-16k-gcc # fails in minar-platform |
| 37 | #yotta_build bbc-microbit-classic-gcc # fails in minar-platform |
| 38 | #yotta_build st-stm32f439zi-gcc # fails in mbed-hal-st-stm32f4 |
| 39 | #yotta_build st-stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4 |
| 40 | fi |