source: titan/plugins/makesh4.sh @ 25589

Last change on this file since 25589 was 25450, checked in by gost, 10 years ago

[plugins] add tsSchnitt step 1

  • Property svn:executable set to *
File size: 4.7 KB
Line 
1#*****************************************************#
2#* this file is part of the tiTan / tiTanNIT Project *#
3#* and allowed only for use with this.               *#
4#*                                                   *#
5#* copyright by NIT                                  *#
6#*****************************************************#
7
8STM=$1
9MEDIAFW=$2
10GROUP=$3
11BOX=$4
12
13if [ -z "$STM" ]; then
14        echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>"
15        exit 1
16fi
17if [ -z "$MEDIAFW" ]; then
18        echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>"
19        exit 1
20fi
21
22if [ $GROUP == "dev" ]; then
23        devflag="-finstrument-functions -rdynamic -DBETA"
24else
25        devflag=""
26fi
27
28cd "$HOME"/flashimg/source.titan/plugins
29ln -s "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins/titan
30
31if [ $MEDIAFW = 1 ]; then
32        eplayer=EPLAYER3
33        eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libeplayer3/include
34        eplayerlib=eplayer3
35else
36        eplayer=EPLAYER4
37        eplayerinclude="$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/gstreamer-0.10
38                         -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/glib-2.0
39                         -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/libxml2
40                         -I$HOME/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib/glib-2.0/include"
41        eplayerlib=gstreamer-0.10
42fi
43
44compile()
45{
46        cd $1
47        echo "[titan]--------------------------------------------------------"
48        echo "[titan] Make Plugin $1"
49        echo "[titan]--------------------------------------------------------"
50
51        $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -D$eplayer -Os $devflag -fPIC -Wall -Wno-unused-but-set-variable $4 \
52        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/include/freetype2 \
53        -I $eplayerinclude \
54        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/driver/bpamem \
55        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libmmeimage \
56        -I "$HOME"/flashimg/source.titan \
57        -c $2.c -o $2.o
58
59        if [ ! -z $3 ]; then
60                $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -Os $devflag -shared -Wl,-soname,$2.so -o $2.so $2.o $3.a
61        else
62                $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -Os $devflag -shared -Wl,-soname,$2.so -o $2.so $2.o
63        fi
64
65        $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-strip $2.so
66        cd ..
67        echo "[titan]--------------------------------------------------------"
68        echo "[titan] Plugin $1 done"
69        echo "[titan]--------------------------------------------------------"
70}
71
72rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"`
73rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"`
74
75echo "[titan]--------------------------------------------------------"
76echo "[titan] Make networkbrowser"
77echo "[titan]--------------------------------------------------------"
78cd networkbrowser/netlib
79cp Makefile."$STM".sh4 Makefile
80make clean
81make
82cd "$HOME"/flashimg/source.titan/plugins
83echo "[titan]--------------------------------------------------------"
84echo "[titan] networkbrowser done"
85echo "[titan]--------------------------------------------------------"
86
87#dir, file, extralib
88compile "networkbrowser" "networkbrowser" "netlib/netlib" ""
89compile "hello" "hello" "" ""
90compile "panel" "panel" "" ""
91compile "mc" "mc" "" ""
92compile "TopfieldVFD" "TopfieldVFD" "" ""
93compile "mboxinfo" "mboxinfo" "" ""
94compile "browser" "browser" "" ""
95compile "keylock" "keylock" "" ""
96compile "permtime" "permtime" "" ""
97compile "zapback" "zapback" "" ""
98compile "imdbapi" "imdbapi" "" ""
99compile "lcdpearl1" "lcdpearl1" "" ""
100compile "lcdsamsung" "lcdsamsung" "" ""
101compile "callmonitor1" "callmonitor1" "" ""
102compile "stopifnotused" "stopifnotused" "" ""
103compile "tithek" "tithek" "" ""
104compile "wins3" "wins3" "" ""
105compile "rgui" "rgui" "" ""
106compile "dvdplayer" "dvdplay" "" ""
107compile "scriptexec" "scriptexec" "" ""
108compile "optimize" "optimize" "" ""
109compile "weather" "weather" "" ""
110compile "tinews" "tinews" "" ""
111compile "stock" "stock" "" ""
112compile "streaminfo" "streaminfo" "" ""
113compile "tmc" "tmc" "" ""
114compile "dlna" "dlna" "" ""
115compile "hbbtv" "hbbtv" "" ""
116compile "instar" "instar" "" ""
117compile "tmdb" "tmdb" "" ""
118compile "gmediarender" "gmediarender" "" ""
119compile "imdb" "imdb" "" ""
120compile "filemanager" "filemanager" "" ""
121compile "catcatch" "catcatch" "" ""
122compile "readerconfig" "readerconfig" "" ""
123compile "tiwakeup" "tiwakeup" "" ""
124compile "autotimer" "autotimer" "" ""
125compile "usbreset" "usbreset" "" ""
126compile "tsSchnitt" "tsSchnitt" "" ""
127
128cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
129echo make curl
130make curl
131
132cd "$HOME"/flashimg/source.titan/plugins
133compile "facebook" "facebook" "" "-l curl"
134
135
136#rm -r networkbrowser/networkbrowser
Note: See TracBrowser for help on using the repository browser.