If you need a fast and maintained linux-based firmware package for your webcam then here is the best place for you - https://github.com/showmewebcam/showmewebcam.
If you want to build it yourself, then here is a place for you.
New documentation for uvc-gadget
Usage: ./uvc-gadget [options]
Available options are
-b value Blink X times on startup (b/w 1 and 20 with led0 or GPIO pin if defined)
-f device Framebuffer device
-h Print this help screen and exit
-l Use onboard led0 for streaming status indication
-n value Number of Video buffers (b/w 2 and 32)
-p value GPIO pin number for streaming status indication
-r value Framerate for framebuffer (b/w 1 and 30)
-u device UVC Video Output device
-v device V4L2 Video Capture device
-x show fps information
Apply patchset Bugfixes for UVC gadget test application
Apply patchset UVC gadget test application enhancements
Add Readme/.gitignore and documentations
Copy linux-3.18.y/drivers/usb/gadget/function/uvc.h into repository, change include path for build