diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-18 11:24:50 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-03-18 11:24:50 -0500 |
commit | 03fd6c50d68ef10f899577a933b760e10d90bac1 (patch) | |
tree | e06503defbdd62b781ba783e81262b5cb6592903 /v4l | |
parent | 2d0abb67a8d568f7bfd5ae1814cf1f34757237da (diff) | |
download | mediapointer-dvb-s2-03fd6c50d68ef10f899577a933b760e10d90bac1.tar.gz mediapointer-dvb-s2-03fd6c50d68ef10f899577a933b760e10d90bac1.tar.bz2 |
fix 'make kernel-links' for new and/or relocated source code
From: Michael Krufky <mkrufky@linuxtv.org>
use 'find' to symlink compat.h into each directory in drivers/ and include/
instead of explicitly specifying each that needs compat.h
This will remove the need to update v4l/scripts/makelinks.sh each time a
new driver is introduced to the tree, and fixes it's current broken state.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'v4l')
-rwxr-xr-x | v4l/scripts/makelinks.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/v4l/scripts/makelinks.sh b/v4l/scripts/makelinks.sh index 44fa17759..981df1af8 100755 --- a/v4l/scripts/makelinks.sh +++ b/v4l/scripts/makelinks.sh @@ -37,15 +37,15 @@ for x in `find include -type f | grep -v CVS | grep -v .cvsignore` ; do ln -v -f -s $PWD/$x $1/$x done -cd .. +for x in `find include -type d | grep -v CVS` ; do + ln -v -f -s $PWD/../v4l/compat.h $1/$x/compat.h +done -ln -v -f -s $PWD/v4l/compat.h $1/include/media/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/include/linux/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/common/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/dvb/bt8xx/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/dvb/cinergyT2/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/dvb/dvb-core/compat.h -ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/video/compat.h +for x in `find drivers/media -type d | grep -v CVS` ; do + ln -v -f -s $PWD/../v4l/compat.h $1/$x/compat.h +done + +cd .. patch -p0 <<'DIFF' diff -u -p videodev.h --- linux/include/linux/videodev.h |