diff options
author | Michael Krufky <devnull@localhost> | 2006-01-15 00:48:19 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2006-01-15 00:48:19 +0000 |
commit | 5b76ddeeaab169f5aae62c0aed8faaaa15534d16 (patch) | |
tree | 983af302b0034822441ea51a13d716dc32105280 /v4l/scripts/merge-pvrusb2.sh | |
parent | d275de67253bfee8f43b7c99af63455bd50c6f0b (diff) | |
download | mediapointer-dvb-s2-5b76ddeeaab169f5aae62c0aed8faaaa15534d16.tar.gz mediapointer-dvb-s2-5b76ddeeaab169f5aae62c0aed8faaaa15534d16.tar.bz2 |
'make pvrusb2' symlinks pvrusb2 code to build with the rest of cvs
- Add option to build pvrusb2 driver
along with the rest of v4l-dvb cvs.
- make pvrusb2 will symlink the code from the v4l_experimental dir.
- to build:
make pvrusb2
make
make install
- Always do 'make clean' before cvs commit, to un-patch the Makefile,
returning the build environment to its original state.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'v4l/scripts/merge-pvrusb2.sh')
-rw-r--r-- | v4l/scripts/merge-pvrusb2.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/v4l/scripts/merge-pvrusb2.sh b/v4l/scripts/merge-pvrusb2.sh new file mode 100644 index 000000000..2852feefd --- /dev/null +++ b/v4l/scripts/merge-pvrusb2.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +PWD=`pwd` +CWD=$PWD + +cd ../v4l_experimental/pvrusb2 +PVRUSB2=$PWD + +echo creating pvrusb2 symbolic links... + +for x in `find . -type f -name '*.[c,h]'` ; do + ln -f -s $PVRUSB2/$x $CWD/$x +done + +cd $CWD +patch -p1 <<'DIFF' +--- v4l.orig/Make.config ++++ v4l/Make.config +@@ -17,7 +17,7 @@ + + CONFIG_VIDEO_ADV_DEBUG := y + +-CONFIG_VIDEO_PVRUSB2 := n ++CONFIG_VIDEO_PVRUSB2 := m + + # doesn't build on older kernels + +--- v4l.orig/Makefile ++++ v4l/Makefile +@@ -464,6 +464,7 @@ + @find . -name '*.c' -type l -exec rm '{}' \; + @find . -name '*.h' -type l -exec rm '{}' \; + -rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump ++ patch -R -p1 < scripts/merge-pvrusb2.sh + + distclean:: clean + -rm -f .version .*.o.flags .*.o.d |