-
Notifications
You must be signed in to change notification settings - Fork 1
/
setenv.sh
executable file
·24 lines (24 loc) · 1.14 KB
/
setenv.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
#!/bin/sh
export ARCH=arm
export TOOLCHAIN=/home/nushor/android-toolchain-eabi
#export TOOLCHAIN=/home/nushor/arm-2010q1
export TOOLPREFIX=arm-eabi
#export TOOLPREFIX=arm-none-eabi
export PATH=$PATH:${TOOLCHAIN}/bin:/usr/java/jdk1.6.0_21/bin
export CROSS_COMPILE=${TOOLCHAIN}/bin/${TOOLPREFIX}-
export CC=${TOOLCHAIN}/bin/${TOOLPREFIX}-gcc
export LD=${TOOLCHAIN}/bin/${TOOLPREFIX}-ld
export AR=${TOOLCHAIN}/bin/${TOOLPREFIX}-ar
export RANLIB=${TOOLCHAIN}/bin/${TOOLPREFIX}-ranlib
export PATH=$PATH:${TOOLCHAIN}/bin
export PATH=$PATH:${TOOLCHAIN}/
export PATH=$PATH:${TOOLCHAIN}/lib
#export CFLAGS="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O2 -fstack-protector -fstack-protector-all -fno-gcse -fprefetch-loop-arrays --param l2-cache-size=512 --param l1-cache-size=64 --param simultaneous-prefetches=6 --param prefetch-latency=400 --param l1-cache-line-size=64 -std=c99"
#export CFLAGS="-static -O2 -fstack-protector -fstack-protector-all -std=c99"
export CLFAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer"
export LDFLAGS=""
#export CPPFLAGS="-static -O2"
export CPPFLAGS="-O2"
echo "ARM environment set"
cd stable
unzip prebuilt.zip