mbed TLS Build

Dependents:   Slave-prot-prod

Committer:
williequesada
Date:
Tue Jun 04 16:03:38 2019 +0000
Revision:
1:1a219dea6cb5
Parent:
0:cdf462088d13
compartir a Pablo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
markrad 0:cdf462088d13 1 #!/bin/sh
markrad 0:cdf462088d13 2
markrad 0:cdf462088d13 3 # yotta-build.sh
markrad 0:cdf462088d13 4 #
markrad 0:cdf462088d13 5 # This file is part of mbed TLS (https://tls.mbed.org)
markrad 0:cdf462088d13 6 #
markrad 0:cdf462088d13 7 # Copyright (c) 2015-2016, ARM Limited, All Rights Reserved
markrad 0:cdf462088d13 8 #
markrad 0:cdf462088d13 9 # Purpose
markrad 0:cdf462088d13 10 #
markrad 0:cdf462088d13 11 # To run test builds of the yotta module for all supported targets.
markrad 0:cdf462088d13 12
markrad 0:cdf462088d13 13 set -eu
markrad 0:cdf462088d13 14
markrad 0:cdf462088d13 15 check_tools()
markrad 0:cdf462088d13 16 {
markrad 0:cdf462088d13 17 for TOOL in "$@"; do
markrad 0:cdf462088d13 18 if ! `hash "$TOOL" >/dev/null 2>&1`; then
markrad 0:cdf462088d13 19 echo "$TOOL not found!" >&2
markrad 0:cdf462088d13 20 exit 1
markrad 0:cdf462088d13 21 fi
markrad 0:cdf462088d13 22 done
markrad 0:cdf462088d13 23 }
markrad 0:cdf462088d13 24
markrad 0:cdf462088d13 25 yotta_build()
markrad 0:cdf462088d13 26 {
markrad 0:cdf462088d13 27 TARGET=$1
markrad 0:cdf462088d13 28
markrad 0:cdf462088d13 29 echo; echo "*** $TARGET (release) ***"
markrad 0:cdf462088d13 30 yt -t $TARGET build
markrad 0:cdf462088d13 31
markrad 0:cdf462088d13 32 echo; echo "*** $TARGET (debug) ***"
markrad 0:cdf462088d13 33 yt -t $TARGET build -d
markrad 0:cdf462088d13 34 }
markrad 0:cdf462088d13 35
markrad 0:cdf462088d13 36 # Make sure the tools we need are available.
markrad 0:cdf462088d13 37 check_tools "arm-none-eabi-gcc" "armcc" "yotta"
markrad 0:cdf462088d13 38
markrad 0:cdf462088d13 39 yotta/create-module.sh
markrad 0:cdf462088d13 40 cd yotta/module
markrad 0:cdf462088d13 41 yt update || true # needs network
markrad 0:cdf462088d13 42
markrad 0:cdf462088d13 43 if uname -a | grep 'Linux.*x86' >/dev/null; then
markrad 0:cdf462088d13 44 yotta_build x86-linux-native
markrad 0:cdf462088d13 45 fi
markrad 0:cdf462088d13 46 if uname -a | grep 'Darwin.*x86' >/dev/null; then
markrad 0:cdf462088d13 47 yotta_build x86-osx-native
markrad 0:cdf462088d13 48 fi
markrad 0:cdf462088d13 49
markrad 0:cdf462088d13 50 # armcc build tests.
markrad 0:cdf462088d13 51 yotta_build frdm-k64f-armcc
markrad 0:cdf462088d13 52 #yotta_build nordic-nrf51822-16k-armcc
markrad 0:cdf462088d13 53
markrad 0:cdf462088d13 54 # arm-none-eabi-gcc build tests.
markrad 0:cdf462088d13 55 yotta_build frdm-k64f-gcc
markrad 0:cdf462088d13 56 #yotta_build st-nucleo-f401re-gcc # dirent
markrad 0:cdf462088d13 57 #yotta_build stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4
markrad 0:cdf462088d13 58 #yotta_build nordic-nrf51822-16k-gcc # fails in minar-platform
markrad 0:cdf462088d13 59 #yotta_build bbc-microbit-classic-gcc # fails in minar-platform
markrad 0:cdf462088d13 60 #yotta_build st-stm32f439zi-gcc # fails in mbed-hal-st-stm32f4
markrad 0:cdf462088d13 61 #yotta_build st-stm32f429i-disco-gcc # fails in mbed-hal-st-stm32f4