From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: 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 Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/pwc/pwc-10.0.12-rc1/Makefile.patch | 19 ++++++++++++ recipes/pwc/pwc-10.0.6a/Makefile | 12 ++++++++ recipes/pwc/pwc-10.0.6a/endian-fix.patch | 47 ++++++++++++++++++++++++++++++ recipes/pwc/pwc-10.0.7a/Makefile | 13 +++++++++ recipes/pwc/pwc-10.0.9-rc1/Makefile | 13 +++++++++ recipes/pwc/pwc_10.0.12-rc1.bb | 35 ++++++++++++++++++++++ recipes/pwc/pwc_10.0.6a.bb | 30 +++++++++++++++++++ recipes/pwc/pwc_10.0.7a.bb | 29 ++++++++++++++++++ recipes/pwc/pwc_10.0.9-rc1.bb | 29 ++++++++++++++++++ 9 files changed, 227 insertions(+) create mode 100644 recipes/pwc/pwc-10.0.12-rc1/Makefile.patch create mode 100644 recipes/pwc/pwc-10.0.6a/Makefile create mode 100644 recipes/pwc/pwc-10.0.6a/endian-fix.patch create mode 100644 recipes/pwc/pwc-10.0.7a/Makefile create mode 100644 recipes/pwc/pwc-10.0.9-rc1/Makefile create mode 100644 recipes/pwc/pwc_10.0.12-rc1.bb create mode 100644 recipes/pwc/pwc_10.0.6a.bb create mode 100644 recipes/pwc/pwc_10.0.7a.bb create mode 100644 recipes/pwc/pwc_10.0.9-rc1.bb (limited to 'recipes/pwc') diff --git a/recipes/pwc/pwc-10.0.12-rc1/Makefile.patch b/recipes/pwc/pwc-10.0.12-rc1/Makefile.patch new file mode 100644 index 0000000000..8bbe31b0dc --- /dev/null +++ b/recipes/pwc/pwc-10.0.12-rc1/Makefile.patch @@ -0,0 +1,19 @@ +*** x/Makefile.orig 2006-03-06 08:10:37.000000000 +0100 +--- x/Makefile 2006-04-29 11:57:11.000000000 +0200 +*************** +*** 48,54 **** + + + all default: +! $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules + + install: default + install -d $(KMISC) +--- 48,54 ---- + + + all default: +! $(MAKE) -C $(KERNEL_SOURCE) M=$(PWD) modules + + install: default + install -d $(KMISC) diff --git a/recipes/pwc/pwc-10.0.6a/Makefile b/recipes/pwc/pwc-10.0.6a/Makefile new file mode 100644 index 0000000000..8e2334e683 --- /dev/null +++ b/recipes/pwc/pwc-10.0.6a/Makefile @@ -0,0 +1,12 @@ +ifneq ($(KERNELRELEASE),) +pwc-objs := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o pwc-dec1.o pwc-dec23.o pwc-kiara.o pwc-timon.o + +obj-m += pwc.o + +else +KDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) + +default modules: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules +endif diff --git a/recipes/pwc/pwc-10.0.6a/endian-fix.patch b/recipes/pwc/pwc-10.0.6a/endian-fix.patch new file mode 100644 index 0000000000..29d689be20 --- /dev/null +++ b/recipes/pwc/pwc-10.0.6a/endian-fix.patch @@ -0,0 +1,47 @@ +--- pwc-10.0.6a.orig/pwc-if.c 2005-03-31 22:17:29.000000000 +0200 ++++ pwc-10.0.6a/pwc-if.c.new 2005-04-01 09:31:39.099541224 +0200 +@@ -846,7 +846,7 @@ + pdev->vmax_packet_size = -1; + for (i = 0; i < idesc->desc.bNumEndpoints; i++) + if ((idesc->endpoint[i].desc.bEndpointAddress & 0xF) == pdev->vendpoint) { +- pdev->vmax_packet_size = idesc->endpoint[i].desc.wMaxPacketSize; ++ pdev->vmax_packet_size = le16_to_cpu(idesc->endpoint[i].desc.wMaxPacketSize); + break; + } + +@@ -1689,9 +1689,14 @@ + int video_nr = -1; /* default: use next available device */ + char serial_number[30], *name; + ++ /* added le16_to_cpu to fix big endian issues */ ++ vendor_id = le16_to_cpu(udev->descriptor.idVendor); ++ product_id = le16_to_cpu(udev->descriptor.idProduct); ++ + /* Check if we can handle this device */ ++ + Trace(TRACE_PROBE, "probe() called [%04X %04X], if %d\n", +- udev->descriptor.idVendor, udev->descriptor.idProduct, ++ vendor_id, product_id, + intf->altsetting->desc.bInterfaceNumber); + + /* the interfaces are probed one by one. We are only interested in the +@@ -1701,9 +1706,7 @@ + if (intf->altsetting->desc.bInterfaceNumber > 0) + return -ENODEV; + +- vendor_id = udev->descriptor.idVendor; +- product_id = udev->descriptor.idProduct; +- ++ + if (vendor_id == 0x0471) { + switch (product_id) { + case 0x0302: +@@ -1954,7 +1957,7 @@ + pdev->vdev->owner = THIS_MODULE; + video_set_drvdata(pdev->vdev, pdev); + +- pdev->release = udev->descriptor.bcdDevice; ++ pdev->release = le16_to_cpu(udev->descriptor.bcdDevice); + Trace(TRACE_PROBE, "Release: %04x\n", pdev->release); + + /* Now search device_hint[] table for a match, so we can hint a node number. */ diff --git a/recipes/pwc/pwc-10.0.7a/Makefile b/recipes/pwc/pwc-10.0.7a/Makefile new file mode 100644 index 0000000000..d941f1a6f2 --- /dev/null +++ b/recipes/pwc/pwc-10.0.7a/Makefile @@ -0,0 +1,13 @@ +ifneq ($(KERNELRELEASE),) +pwc-objs := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-v4l.o pwc-uncompress.o \ + pwc-dec1.o pwc-dec23.o pwc-kiara.o pwc-timon.o + +obj-m += pwc.o + +else +KDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) + +default modules: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules +endif diff --git a/recipes/pwc/pwc-10.0.9-rc1/Makefile b/recipes/pwc/pwc-10.0.9-rc1/Makefile new file mode 100644 index 0000000000..d941f1a6f2 --- /dev/null +++ b/recipes/pwc/pwc-10.0.9-rc1/Makefile @@ -0,0 +1,13 @@ +ifneq ($(KERNELRELEASE),) +pwc-objs := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-v4l.o pwc-uncompress.o \ + pwc-dec1.o pwc-dec23.o pwc-kiara.o pwc-timon.o + +obj-m += pwc.o + +else +KDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) + +default modules: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules +endif diff --git a/recipes/pwc/pwc_10.0.12-rc1.bb b/recipes/pwc/pwc_10.0.12-rc1.bb new file mode 100644 index 0000000000..4292f5c717 --- /dev/null +++ b/recipes/pwc/pwc_10.0.12-rc1.bb @@ -0,0 +1,35 @@ +# FIXME, consider using kernel staging directory instead of KERNEL_SOURCE which is +# located in the work directory. see module.bbclass + +DESCRIPTION = "Philips USB Webcam driver for Linux that supports VGA resolution" +HOMEPAGE = "http://www.saillard.org/linux/pwc" +PRIORITY = "optional" +SECTION = "kernel/modules" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://www.saillard.org/linux/pwc/files/pwc-${PV}.tar.bz2 \ + file://Makefile.patch;patch=1" + +S = "${WORKDIR}/pwc-${PV}" + +inherit module + +CFLAGS = "'-I${KERNEL_SOURCE}/include' " + +CFLAGS_append_arm = " '-D__LINUX_ARM_ARCH__=5' " + +CFLAGS_append_armeb = " '-D__LINUX_ARM_ARCH__=5' " + +EXTRA_OEMAKE = "'V=1' 'CFLAGS=${CFLAGS}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' \ + 'KDIR=${STAGING_KERNEL_DIR}'" + +export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ + -rpath-link ${STAGING_DIR_TARGET}${layout_libdir}" + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} diff --git a/recipes/pwc/pwc_10.0.6a.bb b/recipes/pwc/pwc_10.0.6a.bb new file mode 100644 index 0000000000..26213ee84a --- /dev/null +++ b/recipes/pwc/pwc_10.0.6a.bb @@ -0,0 +1,30 @@ +DESCRIPTION = "Philips USB Webcam driver for Linux that supports VGA resolution" +PRIORITY = "optional" +SECTION = "kernel/modules" +LICENSE = "GPL" +PR = "r1" + +SRC_URI = "http://www.saillard.org/linux/pwc/files/pwc-${PV}.tar.bz2 \ + file://endian-fix.patch;patch=1 \ + file://Makefile" + +S = "${WORKDIR}/pwc-${PV}" + +inherit module + +do_compile_prepend() { + cp -f ${WORKDIR}/Makefile ${S}/ +} + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake 'KDIR=${STAGING_KERNEL_DIR}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' +} + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} + diff --git a/recipes/pwc/pwc_10.0.7a.bb b/recipes/pwc/pwc_10.0.7a.bb new file mode 100644 index 0000000000..b3adc80ee5 --- /dev/null +++ b/recipes/pwc/pwc_10.0.7a.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Philips USB Webcam driver for Linux that supports VGA resolution" +PRIORITY = "optional" +SECTION = "kernel/modules" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://www.saillard.org/linux/pwc/files/pwc-${PV}.tar.bz2 \ + file://Makefile" + +S = "${WORKDIR}/pwc-${PV}" + +inherit module + +do_compile_prepend() { + cp -f ${WORKDIR}/Makefile ${S}/ +} + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake 'KDIR=${STAGING_KERNEL_DIR}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' +} + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} + diff --git a/recipes/pwc/pwc_10.0.9-rc1.bb b/recipes/pwc/pwc_10.0.9-rc1.bb new file mode 100644 index 0000000000..6067c0b1aa --- /dev/null +++ b/recipes/pwc/pwc_10.0.9-rc1.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Philips USB Webcam driver for Linux that supports VGA resolution" +PRIORITY = "optional" +SECTION = "kernel/modules" +LICENSE = "GPL" +PR = "r1" + +SRC_URI = "http://www.saillard.org/linux/pwc/files/pwc-${PV}.tar.bz2 \ + file://Makefile" + +S = "${WORKDIR}/pwc-${PV}" + +inherit module + +do_compile_prepend() { + cp -f ${WORKDIR}/Makefile ${S}/ +} + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake 'KDIR=${STAGING_KERNEL_DIR}' \ + 'CC=${KERNEL_CC}' \ + 'LD=${KERNEL_LD}' +} + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media + install -m 0644 *${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/usb/media +} + -- cgit 1.2.3-korg