forked from Speedy1985/enigmalight
-
Notifications
You must be signed in to change notification settings - Fork 5
/
install_mips.sh
52 lines (35 loc) · 1.05 KB
/
install_mips.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
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
set -e
BUILD_DIR=$(pwd)
PREFIX=${BUILD_DIR}"/usr/"
#check if compiler exists
clear
OE_PATH=/opt/toolchain/toolchains/mipsoe20/bin
printf "Set Compiler Path... '"${OE_PATH}"'\n\n"
export PATH=$PATH:$OE_PATH
HOST=mipsel-unknown-linux-gnu
GCC=${HOST}"-gcc"
GPP=${HOST}"-g++"
CC=${GCC}
CXX=${GPP}
CPPFLAGS="-mhard-float"
cd build
sleep 1
echo "[Hardfloat] Clean directory..."
make clean -i
echo "[Hardfloat] Configure..."
./configure CC=${CC} CXX=${CXX} --host=${HOST} CPPFLAGS="${CPPFLAGS}" --prefix=${PREFIX}
echo
echo "###############################################################"
echo "# #"
echo "# Build MIPS #"
echo "# #"
echo "###############################################################"
echo ""
echo ""
echo "[Hardfloat] Make..."
make -j2
make install
echo "[Hardfloat] >>>> Build Hard-FPU Finisched <<<<"
mv $PREFIX/bin/enigmalight $PREFIX/bin/enigmalight_mips
exit 0;