source: titan/plugins/makesh4.sh @ 17842

Last change on this file since 17842 was 17842, checked in by andyjetset, 12 years ago

#Atemio Panel

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