File:  [DVB] / dvb-kernel / makelinks
Revision 1.8: download - view: text, annotated - select for diffs
Thu Mar 20 09:56:57 2003 UTC (21 years, 2 months ago) by hunold
Branches: MAIN
CVS tags: PATCHSET-FOR-LINUS-21-03-2003, HEAD
Small changes all over the place:
- sync Kconfig and Makefiles with 2.5.65
- fix various things in saa7146 because of latest v4l changes in 2.5.65

- makelinks: removed the compat module from the 2.5.x build process
- makelinks: removed the linkage of ttusb and bt8xx -- enable this again for
  the next patches, when ttusb is more stable and the bt8xx related patches
  have been applied by Gerd Knorr

- dvb: removed the compat module from the 2.5.x build process, added #ifdefs
  around the inclusion of compat.h. this was necessary because having compat
  code in the newest 2.5.x kernel is awkward.

- dvb: move around of dvb_usercopy again. because I removed the compat module
  from the 2.5.x build process, dvb_usercopy had to be moved to another file

- dvb: change MOD_*_USE_COUNT to module_get/module_put in various files,
  but I'm not sure if I did this right. please review these changes.

- dvb: removed the crc32 code from dvb_demux.c, because it's in compat.c, too.

- dvb: removed some cruft from dvd_i2c.c, which is present in compat.h

- all files: apply small fixes to reflect the new location of some header
  files

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

#rm -rf $1/drivers/media/dvb/frontends/*
#for x in `find drivers/media/dvb/frontends/ -type f | grep -v CVS | grep -v .cvsignore` ; do
#	ln -v -f -s $PWD/$x $1/$x
#done

#rm -rf $1/drivers/media/dvb/dvb-core/*
#for x in `find drivers/media/dvb/dvb-core/ -type f | grep -v compat | grep -v CVS | grep -v .cvsignore` ; do
#	ln -v -f -s $PWD/$x $1/$x
#done

#exit

for x in `find drivers -type d | grep -v CVS | grep -v ttusb | grep -v bt8xx ` ; 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 | grep -v compat | grep -v bt8xx | grep -v ttusb ` ; 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>