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 the davinci kernel
11 export KERNEL_SRC
=/home
/user
/linux-davinci
13 #Location of SED tool in your target root directory
14 export SED_DIR
=$FILESYS_DIR/bin
16 #Location of Gstreamer compiled binaries
17 export GSTREAMER_DIR
=$FILESYS_DIR/opt
/gstreamer
19 #Location of Gstreamer libraries
20 export LD_LIBRARY_PATH
=$GSTREAMER_DIR/lib
22 #Location of Gstreamer package config path
23 export PKG_CONFIG_PATH
=$LD_LIBRARY_PATH/pkgconfig
25 export PATH
=$PATH:$MVISTA_INSTALL_DIR/pro
/devkit
/arm
/v5t_le
/bin
27 export TI_PLUGIN_DIR
=$PWD
31 export CE_PACKAGES_PATH
=$DVEVM_PATH/codec_engine_1_10_01
/packages
32 export XDC_PACKAGES_PATH
=$DVEVM_PATH/xdc_2_94
/packages
33 export XDAIS_PACKAGES_PATH
=$DVEVM_PATH/xdais_5_10
/packages
37 echo "Please follow these instructions before running the make script"
39 echo "#1. Set MVISTA_INSTALL_DIR to point to your Montavista directory installation"
40 echo "#2. Set FILESYS_DIR to point to your NFS shared target filesystem"
41 echo "#3. Set DVEVM_PATH to point to your DVEVM installation directory"
42 echo "#4. Set KERNEL_SRC to point to your davinci kernel src (must be configured for davinci)"
43 echo "#5. Create soft links as per 2 commands below logged in as root/superuser"
44 echo " a) Command: ln -s $MVISTA_INSTALL_DIR /opt/montavista"
45 echo " b) Command: ln -s /bin/sed /opt/montavista/common/bin/sed"
50 export PATH
=$PATH:/opt
/montavista
/common
/bin
:$CE_PACKAGES_PATH:$XDC_PACKAGES_PATH:$XDAIS_PACKAGES_PATH
51 cp -fr "$TI_PLUGIN_DIR/xdais" "$GSTREAMER_DIR/include"
52 cp -fr "$TI_PLUGIN_DIR/system_files_gstreamer" "$FILESYS_DIR/opt"
55 echo "Do you want to compile davinci plugins (adecoder, gdecoder, fbvideosink package.. (y/n)"
57 if [ "$input" = "y" ];
60 echo "*************************************************"
61 echo "Building plugins "
62 echo "*************************************************"
65 cd "$TI_PLUGIN_DIR/ti_plugins/davinci"
66 echo "I am in following directory"
71 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR CFLAGS
="-I$FILESYS_DIR/opt/gstreamer/include/xdais -I${KERNEL_SRC}/include" LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
77 echo "You pressed n or some other key... adecoder gdecoder fbvideosink package is not compiled"
82 echo "Do you want to compile ASF Demuxer (tiasfplugin package.. (y/n)"
84 if [ "$input" = "y" ];
87 echo "*************************************************"
88 echo "Building tiasfplugin "
89 echo "*************************************************"
91 cd "$TI_PLUGIN_DIR/ti_plugins/tiasfplugin"
92 echo "I am in following directory"
96 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
102 echo "You pressed n or some other key... tiasfplugin package is not compiled"
107 echo "Do you want to compile AVI Demuxer (tiaviplugin package.. (y/n)"
109 if [ "$input" = "y" ];
112 echo "*************************************************"
113 echo "Building tiaviplugin "
114 echo "*************************************************"
116 cd "$TI_PLUGIN_DIR/ti_plugins/tiaviplugin"
117 echo "I am in following directory"
121 CC
=arm_v5t_le-gcc .
/configure
--build=i686-linux
--host=arm-linux
--prefix=$GSTREAMER_DIR LIBS
=-L"$FILESYS_DIR/opt/system_files_gstreamer"
127 echo "You pressed n or some other key... tiaviplugin package is not compiled"
131 echo "*************************************************"
132 echo "ALL TI PLUGINS BUILT SUCCESSFULLY "
133 echo "*************************************************"