blob: 4f15b822da26395adccc0aec71536af0590fa33b [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001#!/bin/sh
2# this shell script build the ING SDK with BAL switch app as a thread
3# Eventually this script will be replaced by a make file
4#set -x
5echo "Preparing ING SDK ${ING_SDK} source tree in ${ING_SDK_DIR}"
6
7# making build directory
8rm -fr ${ING_SDK_DIR}
9mkdir -p ${ING_SDK_DIR}
10cd ${ING_SDK_DIR}/..
11
12#untar the sdk tgz file
13echo "Untaring ${ING_SDK}.tar.gz"
14tar zxf ${ING_SDK_TOP_DIR}/${ING_SDK}.tar.gz
15
16#patch sdk with bal modifications - DO NOT change the patch order
17echo "Patching SDK ${ING_SDK}.tar.gz with patch file ${ING_SDK_PATCH}"
18patch -p0 < ${ING_SDK_TOP_DIR}/${ING_SDK_PATCH}
19
20#link switch app .h and .c files
21echo "Link Switch App Source files"
22cd ${ING_SDK_DIR}
23mkdir -p make/
24
25if [ "${SWITCH}" = "qax" ];
26then
27 ln -s ${ING_SDK_TOP_DIR}/make/Make.local.qax make/Make.local
28else
29 echo " SWITCH = ${SWITCH} is not specified or supported"
30 exit
31fi
32
33echo "Done"