summaryrefslogtreecommitdiff
path: root/recipes/qc-usb
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/qc-usb
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/qc-usb')
-rw-r--r--recipes/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix25
-rw-r--r--recipes/qc-usb/qc-usb-messenger_0.8.bb28
-rw-r--r--recipes/qc-usb/qc-usb-messenger_1.1.bb26
3 files changed, 79 insertions, 0 deletions
diff --git a/recipes/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix b/recipes/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix
new file mode 100644
index 0000000000..ff3572db8d
--- /dev/null
+++ b/recipes/qc-usb/qc-usb-messenger-0.8/qc-messenger-0.8-fix
@@ -0,0 +1,25 @@
+diff -Naur qc-usb-messenger-0.8/qc-memory.c qc-usb-messenger-0.8-fixed/qc-memory.c
+--- qc-usb-messenger-0.8/qc-memory.c 2003-12-15 10:31:46.000000000 +0100
++++ qc-usb-messenger-0.8-fixed/qc-memory.c 2005-02-22 17:53:50.000000000 +0100
+@@ -63,9 +63,9 @@
+ #endif
+
+ #if !HAVE_VMA
+-static inline int qc_remap_page_range(unsigned long from, unsigned long addr, unsigned long size, pgprot_t prot) { return remap_page_range(from, addr, size, prot); }
+-#undef remap_page_range
+-#define remap_page_range(vma, start, addr, size, prot) qc_remap_page_range((start),(addr),(size),(prot))
++static inline int qc_io_remap_page_range(unsigned long from, unsigned long addr, unsigned long size, pgprot_t prot) { return io_remap_page_range(from, addr, size, prot); }
++#undef io_remap_page_range
++#define io_remap_page_range(vma, start, addr, size, prot) qc_io_remap_page_range((start),(addr),(size),(prot))
+ #endif
+
+ #if LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,3) || defined(pte_offset_map)
+@@ -230,7 +230,7 @@
+ pos = (unsigned long)src;
+ while ((long)size > 0) {
+ physaddr = kvirt_to_pa(pos);
+- if (remap_page_range(vma, start, physaddr, PAGE_SIZE, PAGE_SHARED))
++ if (io_remap_page_range(vma, start, physaddr, PAGE_SIZE, PAGE_SHARED))
+ return -EAGAIN;
+ start += PAGE_SIZE;
+ pos += PAGE_SIZE;
diff --git a/recipes/qc-usb/qc-usb-messenger_0.8.bb b/recipes/qc-usb/qc-usb-messenger_0.8.bb
new file mode 100644
index 0000000000..18c3e64d73
--- /dev/null
+++ b/recipes/qc-usb/qc-usb-messenger_0.8.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "Driver for QuickCam Messenger and Communicate usb cameras"
+PRIORITY = "optional"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+PR = "r2"
+
+SRC_URI = "http://home.mag.cx/messenger/source/${PN}-${PV}.tar.gz \
+ file://qc-messenger-0.8-fix;patch=1"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+inherit module
+
+do_compile () {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
+ oe_runmake 'KSRC=${STAGING_KERNEL_DIR}' \
+ 'KDIR=${STAGING_KERNEL_DIR}' \
+ 'CC="${KERNEL_CC}"' \
+ 'LD="${KERNEL_LD}"' \
+ 'LINUX_DIR=${STAGING_KERNEL_DIR}' \
+ all
+}
+
+do_install() {
+ install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
+ install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
+}
+
diff --git a/recipes/qc-usb/qc-usb-messenger_1.1.bb b/recipes/qc-usb/qc-usb-messenger_1.1.bb
new file mode 100644
index 0000000000..19f0e766ff
--- /dev/null
+++ b/recipes/qc-usb/qc-usb-messenger_1.1.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "Driver for QuickCam Messenger and Communicate usb cameras"
+PRIORITY = "optional"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+PR = "r1"
+
+SRC_URI = "http://home.mag.cx/messenger/source/${PN}-${PV}.tar.gz"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+inherit module
+
+do_compile () {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
+ oe_runmake 'KSRC=${STAGING_KERNEL_DIR}' \
+ 'KDIR=${STAGING_KERNEL_DIR}' \
+ 'CC="${KERNEL_CC}"' \
+ 'LD="${KERNEL_LD}"' \
+ 'LINUX_DIR=${STAGING_KERNEL_DIR}' \
+ all
+}
+
+do_install() {
+ install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
+ install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
+}