From 66f79de399d54ee8b4893145892562783bc94e48 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Wed, 16 Aug 2006 19:16:23 +0000 Subject: [PATCH] fix minor compile issues with spca5xx SVN-Revision: 4572 --- openwrt/package/spca5xx/Makefile | 2 ++ openwrt/package/spca5xx/patches/02-seq_bug.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 openwrt/package/spca5xx/patches/02-seq_bug.patch diff --git a/openwrt/package/spca5xx/Makefile b/openwrt/package/spca5xx/Makefile index 08f7ef3f15..7f9cdd8e92 100644 --- a/openwrt/package/spca5xx/Makefile +++ b/openwrt/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/openwrt/package/spca5xx/patches/02-seq_bug.patch b/openwrt/package/spca5xx/patches/02-seq_bug.patch new file mode 100644 index 0000000000..ec1003e700 --- /dev/null +++ b/openwrt/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); -- 2.25.1