-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sh
executable file
·35 lines (28 loc) · 1017 Bytes
/
build.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
#!/bin/sh
# Install toolchain for C-SKY:
# Ubuntu/Debian
# sudo add-apt-repository ppa:nationalchip-repo/gxtools
# sudo apt-get update
# sudo apt-get install csky-linux-tools-uclibc-2.8.01
# Manually:
# wget https://launchpad.net/~nationalchip-repo/+archive/ubuntu/gxtools/+sourcefiles/csky-linux-tools-uclibc-2.8.01/1.0.0.0/csky-linux-tools-uclibc-2.8.01_1.0.0.0.tar.xz
#
# export PATH=/opt/gxtools/csky-linux-tools-uclibc-20170724/bin:$PATH
# OLD_GX_UCLIBC=1
VAR=""
export LANG=C
if [ $OLD_GX_UCLIBC = 1 ]; then
export EXTRA_CFLAGS="-DOLD_GX_UCLIBC"
export PATH=/opt/goxceed/csky-linux/bin:$PATH
else
export PATH=/opt/goxceed/csky-linux-tools-i386-uclibc-20170724/bin:/opt/gxtools/csky-linux-tools-uclibc-20170724/bin:$PATH
fi
cd ./libdvbcsa
./build.sh $OLD_GX_UCLIBC
cd ..
if [ ! -f config.log ]; then
CFLAGS="-I./libdvbcsa/src" LDFLAGS="-L./libdvbcsa/src/.libs" ./configure --host=csky-linux --enable-gxapi --enable-static --enable-dvbcsa --disable-satipc
fi
make clean
make
csky-linux-strip minisatip