1 # MVISTA_INSTALL_DIR should point to your Montavista directory installation
2 export MVISTA_INSTALL_DIR
=/opt
/dvevm
/mv_pro_4.0
/montavista
4 #FILESYS_DIR should point to NFS shared target root directory
5 export FILESYS_DIR
=/home
/user
/workdir
/filesys
7 #Location of DVEVM_PATH to point to DVEVM directory
8 export DVEVM_PATH
=/home
/user
/dvevm_1_20
10 #Location of SED tool in your target root directory
11 export SED_DIR
=$FILESYS_DIR/bin
13 #Location of Gstreamer compiled binaries
14 export GSTREAMER_DIR
=$FILESYS_DIR/opt
/gstreamer
16 #Location of Gstreamer libraries
17 export LD_LIBRARY_PATH
=$GSTREAMER_DIR/lib
19 #Location of Gstreamer package config path
20 export PKG_CONFIG_PATH
=$LD_LIBRARY_PATH/pkgconfig
22 export PATH
=$PATH:$MVISTA_INSTALL_DIR/pro
/devkit
/arm
/v5t_le
/bin
24 export TI_PLUGIN_DIR
=$PWD
28 export CE_PACKAGES_PATH
=$DVEVM_PATH/codec_engine_1_10_01
/packages
29 export XDC_PACKAGES_PATH
=$DVEVM_PATH/xdc_2_94
/packages
30 export XDAIS_PACKAGES_PATH
=$DVEVM_PATH/xdais_5_10
/packages
34 echo "Please follow these instructions before running the make script"
36 echo "#1. Set MVISTA_INSTALL_DIR to point to your Montavista directory installation"
37 echo "#2. Set FILESYS_DIR to point to your NFS shared target filesystem"
38 echo "#3. Set DVEVM_PATH to point to your DVEVM installation directory"
39 echo "#4. Create soft links as per 2 commands below logged in as root/superuser"
40 echo " a) Command: ln -s $MVISTA_INSTALL_DIR /opt/montavista"
41 echo " b) Command: ln -s /bin/sed /opt/montavista/common/bin/sed"
46 export PATH
=$PATH:/opt
/montavista
/common
/bin
:$CE_PACKAGES_PATH:$XDC_PACKAGES_PATH:$XDAIS_PACKAGES_PATH
47 cp -fr "$TI_PLUGIN_DIR/xdais" "$GSTREAMER_DIR/include"
48 cp -fr "$TI_PLUGIN_DIR/system_files_gstreamer" "$FILESYS_DIR/opt"
51 echo "Do you want to compile AUDIO Decoder (adecoder package.. (y/n)"
53 if [ "$input" = "y" ];
56 echo "*************************************************"
57 echo "Building adecoder "
58 echo "*************************************************"
61 cd "$TI_PLUGIN_DIR/ti_plugins/adecoder"
62 echo "I am in following directory"
67 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR CFLAGS
=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
73 echo "You pressed n or some other key... adecoder package is not compiled"
79 echo "Do you want to compile VIDEO Decoder (gdecoder package.. (y/n)"
81 if [ "$input" = "y" ];
85 echo "*************************************************"
86 echo "Building gdecoder "
87 echo "*************************************************"
89 cd "$TI_PLUGIN_DIR/ti_plugins/gdecoder"
90 echo "I am in following directory"
94 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR CFLAGS
=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
100 echo "You pressed n or some other key... gdecoder package is not compiled"
105 echo "Do you want to compile Video Framebuffer Sink (fbvideosink package.. (y/n)"
107 if [ "$input" = "y" ];
110 echo "*************************************************"
111 echo "Building fbvideosink "
112 echo "*************************************************"
114 cd "$TI_PLUGIN_DIR/ti_plugins/fbvideosink"
115 echo "I am in following directory"
119 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR CFLAGS
=-I"$FILESYS_DIR/opt/gstreamer/include/xdais" LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
126 echo "You pressed n or some other key... fbvideosink package is not compiled"
131 echo "Do you want to compile ASF Demuxer (tiasfplugin package.. (y/n)"
133 if [ "$input" = "y" ];
136 echo "*************************************************"
137 echo "Building tiasfplugin "
138 echo "*************************************************"
140 cd "$TI_PLUGIN_DIR/ti_plugins/tiasfplugin"
141 echo "I am in following directory"
145 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
151 echo "You pressed n or some other key... tiasfplugin package is not compiled"
156 echo "Do you want to compile AVI Demuxer (tiaviplugin package.. (y/n)"
158 if [ "$input" = "y" ];
161 echo "*************************************************"
162 echo "Building tiaviplugin "
163 echo "*************************************************"
165 cd "$TI_PLUGIN_DIR/ti_plugins/tiaviplugin"
166 echo "I am in following directory"
170 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
176 echo "You pressed n or some other key... tiaviplugin package is not compiled"
180 echo "*************************************************"
181 echo "ALL TI PLUGINS BUILT SUCCESSFULLY "
182 echo "*************************************************"