File:  [DVB] / dvb-kernel / makelinks
Revision 1.6: download - view: text, annotated - select for diffs
Fri Jan 3 17:16:42 2003 UTC (21 years, 5 months ago) by hunold
Branches: MAIN
CVS tags: HEAD
Build fixes for 2.5.x, thank Gregoire Favre <greg@ulima.unil.ch>
for pointing out these flaws regularly...

Changes in detail:

- added comapt.[ch] again, but removed the *_usercopy() crap. We
define dvb_usercopy() until generic_usercopy() is available.
If you have an external source tree, please check what's actually
needed to get your application to compile and report back to me
or on the mailing list. Thanks!
(Necessary changes to the Makefile, and various dvb files, removed some
unnecessary #include <linux/videodev>)

- added linux/lib/Makefile. We need to add an include to
drivers/media/dvb/dvb-core/Makefile.lib, so that crc32.o
gets build automagically
(Adjusted the "makelinks" script as well)

#!/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

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>