File:  [DVB] / dvb-kernel / makelinks
Revision 1.7: download - view: text, annotated - select for diffs
Thu Jan 9 10:27:22 2003 UTC (21 years, 5 months ago) by hunold
Branches: MAIN
CVS tags: HEAD
Fixes for 2.5.55 all over the place:

- removed the patches, they are not needed any more. you can now
  use a vanilla 2.5.55 kernel
- created a new backport for video-buf and videodev from the 2.5.55
  sources
- necessary fixes to the saa7146 driver due to changes in 2.5.55
- the core budget functions are now provided by a module called
  "budget-core.o". (otherwise static compilation is not possible...)
- removed #ifdef MODULE crap from all files

Misc.
- "xawtv" (using xv extension) resulted in wrong colors. the problem
  is within "xawtv". Gerd Knorr told me, that it'll be fixed in the
  next release.

I tested this version with 2.4.20, 2.5.55 (modules) and 2.5.55
(static).

#!/bin/sh


if test -z $1 || ! test -d $1 ; then
	echo
	echo "  usage: $0 <path_to_kernel_to_patch>"
	echo
	exit 
fi

echo "patching $1..."

cd linux
PWD=`pwd`

for x in `find drivers -type d | grep -v CVS` ; do
	mkdir -p -v $1/$x 
done

for x in `find include -type d | grep -v CVS` ; do
	mkdir -p -v $1/$x 
done

for x in `find drivers -type f | grep -v CVS | grep -v .cvsignore` ; do
	ln -v -f -s $PWD/$x $1/$x
done

for x in `find lib -type f | grep -v CVS | grep -v .cvsignore` ; do
	ln -v -f -s $PWD/$x $1/$x
done

for x in `find $1/drivers/media/dvb -type f | grep "saa"` ; do 
	rm -rf $x
done

rm -rf $1/drivers/media/dvb/frontends/alps_bsru6.*
rm -rf $1/drivers/media/dvb/av7110
mv $1/drivers/media/video/video-buf* $1/drivers/media/common

for x in `find include -type f | grep -v CVS | grep -v .cvsignore` ; do
	ln -v -f -s $PWD/$x $1/$x
done


LinuxTV legacy CVS <linuxtv.org/cvs>