Skip to contentSkip to conversation

uvc: Fix compilation breakage for the other drivers, if uvc is selected

linuxtv-commits Mauro Carvalho Chehab 2 participants 2 messages Jul 2, 2008 – Jul 3, 2008 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Stephen,

I noticed a bad thing on a patch that I've added to linux-next. Basically, if you select uvc, it will drop some other drivers. So, your today build is probably incomplete.

I'm adding this patch to my linux-next tree.

The error and its fix is trivial.

It would be nice if we have a tool to get this error. I only noticed the problem due to the large decrease of the compilation time.

Cheers,
Mauro.

------

From: Mauro Carvalho Chehab <[email protected]>
uvc: Fix compilation breakage for the other drivers, if uvc is selected

UVC makefile defines obj as:

	obj-$(CONFIG_USB_VIDEO_CLASS) := uvcvideo.o
Instead of:
	obj-$(CONFIG_USB_VIDEO_CLASS) += uvcvideo.o

Due to that, if uvc is selected, all obj-y or obj-m that were added to compilation were forget. This breaks a proper kernel build.

---

 linux/drivers/media/video/uvc/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux/drivers/media/video/uvc/Makefile +1 -1
diff -r d51bf59f63b5 -r 02cda7958a05 linux/drivers/media/video/uvc/Makefile
@@ -1,3 +1,3 @@ uvcvideo-objs  := uvc_driver.o uvc_queue
 uvcvideo-objs  := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o \
 		  uvc_status.o uvc_isight.o
-obj-$(CONFIG_USB_VIDEO_CLASS) := uvcvideo.o
+obj-$(CONFIG_USB_VIDEO_CLASS) += uvcvideo.o

---

Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/02cda7958a05b568b2851aeb88b57dba8fb77eb9

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Cheers,
Mauro

#1 lore raw

Hi Mauro,

Quoted 6 lines · On Wed, 2 Jul 2008 09:06:43 -0300 Mauro Carvalho Chehab…

I noticed a bad thing on a patch that I've added to linux-next. Basically, if you select uvc, it will drop some other drivers. So, your today build is probably incomplete.

I'm adding this patch to my linux-next tree.

Thanks.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/