aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: f67c31fb762d92857fe707c33c57ba1a63051993 (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
run ()
{
	echo $@
	$@
	if [ "$?" != "0" ]; then
		echo "*** ERROR. Aborting ***"
		exit -1
	fi
}

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
echo "Note: requires git/perl/make/gcc/patch/perl-Digest-SHA1/patchutils packages to work"
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