aboutsummaryrefslogtreecommitdiffstats
path: root/package/spca5xx
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-08-16 19:16:23 +0000
committerMike Baker <mbm@openwrt.org>2006-08-16 19:16:23 +0000
commit7452de6bd914d2c9d41b23063491f98aae7da169 (patch)
tree4075f7280844894f47308e24999dca1e3a42ad22 /package/spca5xx
parentcb8d3a4bd643d0e2f90c396fad9ad89946167598 (diff)
downloadupstream-7452de6bd914d2c9d41b23063491f98aae7da169.tar.gz
upstream-7452de6bd914d2c9d41b23063491f98aae7da169.tar.bz2
upstream-7452de6bd914d2c9d41b23063491f98aae7da169.zip
fix minor compile issues with spca5xx
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4572 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/spca5xx')
-rw-r--r--package/spca5xx/Makefile2
-rw-r--r--package/spca5xx/patches/02-seq_bug.patch14
2 files changed, 16 insertions, 0 deletions
diff --git a/package/spca5xx/Makefile b/package/spca5xx/Makefile
index 08f7ef3f15..7f9cdd8e92 100644
--- a/package/spca5xx/Makefile
+++ b/package/spca5xx/Makefile
@@ -37,6 +37,8 @@ define Build/Compile
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
KERNELVERSION="$(KERNEL)" \
+ KERNEL_VERSION="$(LINUX_VERSION)" \
+ KERNELDIR="$(LINUX_DIR)" \
SUBDIRS="$(PKG_BUILD_DIR)" \
modules
endef
diff --git a/package/spca5xx/patches/02-seq_bug.patch b/package/spca5xx/patches/02-seq_bug.patch
new file mode 100644
index 0000000000..ec1003e700
--- /dev/null
+++ b/package/spca5xx/patches/02-seq_bug.patch
@@ -0,0 +1,14 @@
+diff -Nur spca5xx-20060501/drivers/usb/spca5xx.c.orig spca5xx-20060501/drivers/usb/spca5xx.c
+--- spca5xx-20060501/drivers/usb/spca5xx.c.orig 2006-08-16 11:56:33.000000000 -0700
++++ spca5xx-20060501/drivers/usb/spca5xx.c 2006-08-16 11:55:41.000000000 -0700
+@@ -1092,8 +1092,8 @@
+ // spca50x->avg_lum, spca50x->avg_lum);
+ for (i = 0; i < SPCA50X_NUMFRAMES; i++) {
+ out += sprintf(out, "frame : %d\n", i);
+- out +=
+- sprintf(out, " sequence : %d\n", spca50x->frame[i].seq);
++// out +=
++// sprintf(out, " sequence : %d\n", spca50x->frame[i].seq);
+ out +=
+ sprintf(out, " grabstate : %d\n",
+ spca50x->frame[i].grabstate);