[FOSS_TLK]tlk: add LOCAL_MODULE_SUFFIX for tlk
[3rdparty/ote_partner/tlk.git] / build
1 #!/bin/sh
2
3 FAILED=""
4 MONLIB=false
5 TARGET_ARCH=arm64
6 TOOLS_PATH=../tools/aarch64-linux-android-4.8
7
8 if [ -d "$TOOLS_PATH" ]; then
9         echo Tools found
10 else
11         echo fatal error !!!
12         echo Tools not found, please put the tool to the path $TOOLS_PATH
13         exit 1
14 fi
15 if [ "$1" = "t124" ]; then
16         MONLIB=true
17         TARGET_ARCH=arm
18 fi
19 cd secure_monitor
20 echo PROJECT=tegra TARGET=$1 TARGET_ARCH=$TARGET_ARCH MONITOR_LIBRARY=$MONLIB STANDALONE_MONITOR=false nice make -j4 -e || FAILED="$FAILED $1"
21 PROJECT=tegra TARGET=$1 TARGET_ARCH=$TARGET_ARCH MONITOR_LIBRARY=$MONLIB STANDALONE_MONITOR=false nice make -j4 -e || FAILED="$FAILED $1"
22 cd ..
23 echo PROJECT=tegra TARGET=$1 TARGET_ARCH=$TARGET_ARCH nice make -j4 -e || FAILED="$FAILED $1"
24 PROJECT=tegra TARGET=$1 TARGET_ARCH=$TARGET_ARCH nice make -j4 -e || FAILED="$FAILED $1"
25
26 if [ "$FAILED" != "" ]; then
27         echo
28         echo some projects have failed to build:
29         echo $FAILED
30 fi