aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 60d0c26cec58d0ffbbe4d463f937cb068c4e067e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
run ()
{
	echo $@
	$@
	if [ "$?" != "0" ]; then
		echo "*** ERROR. Aborting ***"
		exit -1
	fi
}

echo "Checking if the needed tools are present"
run ./check_needs.pl
echo "Checking for Digest::SHA1 (package perl-Digest-SHA1)"
run perl -MDigest::SHA1 -e 1
echo
echo "************************************************************"
echo "* This script will download the latest tarball and build it*"
echo "* Assuming that your kernel is compatible with the latest  *"
echo "* drivers. If not, you'll need to add some extra backports,*"
echo "* ./backports/<kernel> directory.                          *"
echo "* It will also update this tree to be sure that all compat *"
echo "* bits are there, to avoid compilation failures            *"
echo "************************************************************"
echo
sleep 5
run git pull git://linuxtv.org/media_build.git master

run make -C linux/ download
run make -C linux/ untar
run make

echo "**********************************************************"
echo "* Compilation finished. Use "make install" to install them"
echo "**********************************************************"

Privacy Policy