-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.sh
executable file
·40 lines (34 loc) · 1.09 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh -f
# Copyright (c) 2010, All Right Reserved, Adapteva, Inc.
# This source is subject to the Adapteva Software License.
# You should have received a copy of the full license file
# named ("LICENSE") along with this program. If not, contact
# Adapteva immediately at [email protected]
case $(uname -m) in
x86_64)
_esdk_arch=".x86_64"
;;
arm*)
_esdk_arch=".armv7l"
;;
*)
_esdk_arch=""
;;
esac
if [ -z "$EPIPHANY_HOME" ]; then
echo "Please set the EPIPHANY_HOME to the root folder of the SDK release!"
else
#PATH=${EPIPHANY_HOME}/tools/a-gnu/bin:${PATH}
PATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/bin:${PATH}
PATH=${EPIPHANY_HOME}/tools/host${_esdk_arch}/bin:${PATH}
LD_LIBRARY_PATH=${EPIPHANY_HOME}/tools/host${_esdk_arch}/lib:${LD_LIBRARY_PATH}
LD_LIBRARY_PATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/lib:${LD_LIBRARY_PATH}
EPIPHANY_HDF=${EPIPHANY_HOME}/bsps/current/platform.hdf
MANPATH=${EPIPHANY_HOME}/tools/e-gnu${_esdk_arch}/share/man:${MANPATH}
export PATH
export LD_LIBRARY_PATH
export EPIPHANY_HOME
export EPIPHANY_HDF
export MANPATH
fi
unset _esdk_arch