Есть ноутбук с вебкамерой из сабжа, к вебкамере есть свободный драйвер. И все было хорошо, пока в сабжевом ядре что-то не выпилили, и драйвер перестал собираться. На SourceForge в обсуждении какой-то добрый человек выложил решение и оно даже помогло следующему комментатору, но я в нем ничего не понял - начиная с diff --git.. Подскажите, как его собрать ?
PS Решение по второй ссылке (для тру :))
I made the following changes to trunk (r101) and I got the driver to compile, load and work fine. It's not an elegant patch, but it worked:
diff --git a/driver/Makefile.standalone b/driver/Makefile.standalone index ff375b1..bf1041e 100644 --- a/driver/Makefile.standalone +++ b/driver/Makefile.standalone @@ -1,5 +1,5 @@ -KVER=2.6.36.2 -#KVER=$(shell uname -r) +#KVER=2.6.36.2 +KVER=$(shell uname -r) KSRC=/lib/modules/$(KVER)/build diff --git a/driver/stk11xx-sysfs.c b/driver/stk11xx-sysfs.c index a9779c9..0b1ba81 100644 --- a/driver/stk11xx-sysfs.c +++ b/driver/stk11xx-sysfs.c @@ -40,7 +40,7 @@ #include <linux/kref.h> #include <linux/device.h> #include <linux/mm.h> -#include <linux/videodev.h> +//#include <linux/videodev.h> #include <linux/usb.h> diff --git a/driver/stk11xx-v4l.c b/driver/stk11xx-v4l.c index 8ed04d7..b2c1033 100644 --- a/driver/stk11xx-v4l.c +++ b/driver/stk11xx-v4l.c @@ -40,7 +40,7 @@ #include <linux/kref.h> #include <linux/vmalloc.h> #include <linux/mm.h> -#include <linux/videodev.h> +//#include <linux/videodev.h> #include <linux/usb.h> @@ -663,8 +663,8 @@ static long v4l_stk11xx_do_ioctl(struct file *fp, #endif switch (cmd) { +/* // Video 4 Linux v1 - case VIDIOCGCAP: { struct video_capability *cap = arg; @@ -1004,7 +1004,7 @@ static long v4l_stk11xx_do_ioctl(struct file *fp, vu->teletext = -1; } break; - +*/ // Video 4 Linux v2