path: root/drivers/media/Makefile
diff options
authorIngo Molnar <>2008-04-30 09:48:07 +0200
committerLinus Torvalds <>2008-05-08 10:55:23 -0700
commitf7c83a0aaa772f8d0189fa197d77c762caaa367a (patch)
tree2de2d9d15ebe97cff24e7ed9fc0c6db4065f9551 /drivers/media/Makefile
parent8e1bf9ffb1aca693e3cf4a4f7144c8f70c8a08b0 (diff)
Fix drivers/media build for modular builds
Fix allmodconfig build bug introduced in latest -git by commit 7c91f0624a9 ("V4L/DVB(7767): Move tuners to common/tuners"): LD kernel/built-in.o LD drivers/built-in.o ld: drivers/media/built-in.o: No such file: No such file or directory which happens if all media drivers are modular: In that case there's no obj-y rule connecting all the built-in.o files and the link tree breaks. The fix is to add a guaranteed obj-y rule for the core vmlinux to build. (which results in an empty object file if all media drivers are modular) Signed-off-by: Ingo Molnar <> Acked-by: Sam Ravnborg <> Signed-off-by: Stephen Rothwell <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'drivers/media/Makefile')
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/Makefile b/drivers/media/Makefile
index 73f742c7e818..cc11c4c0e7e7 100644
--- a/drivers/media/Makefile
+++ b/drivers/media/Makefile
@@ -2,6 +2,8 @@
# Makefile for the kernel multimedia device drivers.
+obj-y := common/
obj-$(CONFIG_VIDEO_MEDIA) += common/
# Since hybrid devices are here, should be compiled if DVB and/or V4L