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 | |
---|
8 | STM=$1 |
---|
9 | MEDIAFW=$2 |
---|
10 | GROUP=$3 |
---|
11 | BOX=$4 |
---|
12 | |
---|
13 | if [ -z "$STM" ]; then |
---|
14 | echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>" |
---|
15 | exit 1 |
---|
16 | fi |
---|
17 | if [ -z "$MEDIAFW" ]; then |
---|
18 | echo "error: use makesh4.sh <stm23|stm23|stm24> <1|2>" |
---|
19 | exit 1 |
---|
20 | fi |
---|
21 | |
---|
22 | if [ $GROUP == "dev" ]; then |
---|
23 | devflag="-finstrument-functions -rdynamic -DBETA" |
---|
24 | else |
---|
25 | devflag="" |
---|
26 | fi |
---|
27 | |
---|
28 | cd "$HOME"/flashimg/source.titan/plugins |
---|
29 | ln -s "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins/titan |
---|
30 | |
---|
31 | if [ $MEDIAFW = 1 ]; then |
---|
32 | eplayer=EPLAYER3 |
---|
33 | eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libeplayer3/include |
---|
34 | eplayerlib=eplayer3 |
---|
35 | else |
---|
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 |
---|
42 | fi |
---|
43 | |
---|
44 | compile() |
---|
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 | |
---|
72 | rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"` |
---|
73 | rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"` |
---|
74 | |
---|
75 | echo "[titan]--------------------------------------------------------" |
---|
76 | echo "[titan] Make networkbrowser" |
---|
77 | echo "[titan]--------------------------------------------------------" |
---|
78 | cd networkbrowser/netlib |
---|
79 | cp Makefile."$STM".sh4 Makefile |
---|
80 | make clean |
---|
81 | make |
---|
82 | cd "$HOME"/flashimg/source.titan/plugins |
---|
83 | echo "[titan]--------------------------------------------------------" |
---|
84 | echo "[titan] networkbrowser done" |
---|
85 | echo "[titan]--------------------------------------------------------" |
---|
86 | |
---|
87 | #dir, file, extralib |
---|
88 | compile "networkbrowser" "networkbrowser" "netlib/netlib" "" |
---|
89 | compile "hello" "hello" "" "" |
---|
90 | compile "panel" "panel" "" "" |
---|
91 | compile "mc" "mc" "" "" |
---|
92 | compile "TopfieldVFD" "TopfieldVFD" "" "" |
---|
93 | compile "mboxinfo" "mboxinfo" "" "" |
---|
94 | compile "browser" "browser" "" "" |
---|
95 | compile "keylock" "keylock" "" "" |
---|
96 | compile "permtime" "permtime" "" "" |
---|
97 | compile "zapback" "zapback" "" "" |
---|
98 | compile "imdbapi" "imdbapi" "" "" |
---|
99 | compile "lcdpearl1" "lcdpearl1" "" "" |
---|
100 | compile "lcdsamsung" "lcdsamsung" "" "" |
---|
101 | compile "callmonitor1" "callmonitor1" "" "" |
---|
102 | compile "stopifnotused" "stopifnotused" "" "" |
---|
103 | compile "tithek" "tithek" "" "" |
---|
104 | compile "wins3" "wins3" "" "" |
---|
105 | compile "rgui" "rgui" "" "" |
---|
106 | compile "dvdplayer" "dvdplay" "" "" |
---|
107 | compile "scriptexec" "scriptexec" "" "" |
---|
108 | compile "optimize" "optimize" "" "" |
---|
109 | compile "weather" "weather" "" "" |
---|
110 | compile "tinews" "tinews" "" "" |
---|
111 | compile "stock" "stock" "" "" |
---|
112 | compile "streaminfo" "streaminfo" "" "" |
---|
113 | compile "tmc" "tmc" "" "" |
---|
114 | compile "dlna" "dlna" "" "" |
---|
115 | compile "hbbtv" "hbbtv" "" "" |
---|
116 | compile "instar" "instar" "" "" |
---|
117 | compile "tmdb" "tmdb" "" "" |
---|
118 | compile "gmediarender" "gmediarender" "" "" |
---|
119 | compile "imdb" "imdb" "" "" |
---|
120 | compile "filemanager" "filemanager" "" "" |
---|
121 | compile "catcatch" "catcatch" "" "" |
---|
122 | compile "readerconfig" "readerconfig" "" "" |
---|
123 | compile "tiwakeup" "tiwakeup" "" "" |
---|
124 | compile "autotimer" "autotimer" "" "" |
---|
125 | compile "usbreset" "usbreset" "" "" |
---|
126 | |
---|
127 | cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk |
---|
128 | echo make curl |
---|
129 | make curl |
---|
130 | |
---|
131 | cd "$HOME"/flashimg/source.titan/plugins |
---|
132 | compile "facebook" "facebook" "" "-l curl" |
---|
133 | |
---|
134 | |
---|
135 | #rm -r networkbrowser/networkbrowser |
---|