[linux-yocto] [PATCH 5/6] uvcvideo: a new config for a webcam device driver

Bruce Ashfield bruce.ashfield at gmail.com
Wed Jul 3 20:38:12 PDT 2013


On Tue, Jul 2, 2013 at 4:05 PM,  <nitin.a.kamble at intel.com> wrote:
> From: Nitin A Kamble <nitin.a.kamble at intel.com>
>
> Add a kernel config fragment for USB video class device driver used by
> many webcams.
>
> Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
> ---
>  meta/cfg/kernel-cache/features/usb/usb-uvcvideo.cfg | 4 ++++
>  meta/cfg/kernel-cache/features/usb/usb-uvcvideo.scc | 7 +++++++
>  2 files changed, 11 insertions(+)
>  create mode 100644 meta/cfg/kernel-cache/features/usb/usb-uvcvideo.cfg
>  create mode 100644 meta/cfg/kernel-cache/features/usb/usb-uvcvideo.scc
>
> diff --git a/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.cfg b/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.cfg
> new file mode 100644
> index 0000000..d1d6121
> --- /dev/null
> +++ b/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.cfg
> @@ -0,0 +1,4 @@
> +# Enable USB Video Class camera support
> +CONFIG_MEDIA_USB_SUPPORT=y
> +CONFIG_USB_VIDEO_CLASS=m
> +CONFIG_USB_GSPCA=n

I tend to be old school on these and go with:

# CONFIG_USB_GSPCA is not set

Along with that, can you add a short comment as to why that particular
option should be disabled ? It wasn't immediately obvious to me, so a
commend would help.

Cheers,

Bruce

> diff --git a/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.scc b/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.scc
> new file mode 100644
> index 0000000..a8cd0f1
> --- /dev/null
> +++ b/meta/cfg/kernel-cache/features/usb/usb-uvcvideo.scc
> @@ -0,0 +1,7 @@
> +define KFEATURE_DESCRIPTION "Enable USB UVC Video Camera Module"
> +define KFEATURE_COMPATIBILITY board
> +
> +include usb-base.scc
> +include features/media/media-camera.scc
> +
> +kconf hardware usb-uvcvideo.cfg
> --
> 1.8.1.4
>
> _______________________________________________
> linux-yocto mailing list
> linux-yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/linux-yocto



--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the linux-yocto mailing list