11 # The following are required by crosstool
16 DOWNLOAD_PREFIX=http://www.loggytronic.com/dl/
18 FILE_MVPDEVFS=mvpdevfs-4.tar.gz
20 # Files used by the script packages
21 SOURCEFILES="crosstool-0.43.tar.gz linux-2.4.31.tar.bz2 busybox-1.00.tar.bz2 jpegsrc.v6b.tar.gz genext2fs-1.4.tar.gz"
22 # And files downloaded by crosstool:
23 SOURCEFILES+=" binutils-2.15.tar.bz2 glibc-2.2.5.tar.gz linux-2.6.8.tar.bz2 gcc-3.4.5.tar.bz2 glibc-linuxthreads-2.2.5.tar.gz"
27 # ----------------------------------------------
33 echo "Error: could not create directory: $1"
40 if [ ! -r ${PACKAGES_DIR}/$1 -o ! -s ${PACKAGES_DIR}/$1 ]
42 if ! $WGET -O ${PACKAGES_DIR}/$1 ${DOWNLOAD_PREFIX}$1
44 echo "Error: could not download $1"
52 if [ -x /bin/$1 ] || [ -x /usr/bin/$1 ]
56 echo "$1 not found in /bin or /usr/bin."
64 echo "VOMP Development Environment Setup Script (git version)"
69 # Test for prerequisites
71 if [ -L /bin/sh ] && [ $(readlink /bin/sh) = dash ]
73 echo "Your /bin/sh symlink links to dash which causes the crosstool build to fail."
74 echo "Please point /bin/sh to another shell (bash works)."
95 downloadFile $FILE_MVPDEVFS
97 for i in $SOURCEFILES ; do
101 # Build cross compiler
121 # Build kernel module
123 cd ${TOP}/lbox_border
126 # Get client and build for dongle
129 $GIT clone http://git.vomp.tv/vompclient.git client
141 echo "Done. A dongle should have been created as dongle/vomp-dongle"
142 echo "Optionally you can set-up an NFS root development environment by following the"
143 echo "MVP-Filesystem->DHCP->TFTP->NFS guide."