]> git.karo-electronics.de Git - linux-beck.git/commitdiff
v4l2-pci-skeleton: Only build if PCI is available
authorMark Brown <broonie@kernel.org>
Thu, 25 Sep 2014 18:23:27 +0000 (11:23 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Sep 2014 09:02:58 +0000 (11:02 +0200)
Currently arm64 does not support PCI but it does support v4l2. Since the
PCI skeleton driver is built unconditionally as a module with no dependency
on PCI this causes build failures for arm64 allmodconfig. Fix this by
defining a symbol VIDEO_PCI_SKELETON for the skeleton and conditionalising
the build on that.

Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org> [added VIDEO dependencies]
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/video4linux/Makefile
drivers/media/v4l2-core/Kconfig

index d58101e788fc7a7c5b79e9fbebf56c853911b238..65a351d75c950e23d68b4b385a600a208a92a149 100644 (file)
@@ -1 +1 @@
-obj-m := v4l2-pci-skeleton.o
+obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
index 9ca0f8d59a147d5cffe2039ce90228f2e85cf71f..ba7e21a73023b9aef490d4c6406448e224c297f7 100644 (file)
@@ -25,6 +25,15 @@ config VIDEO_FIXED_MINOR_RANGES
 
          When in doubt, say N.
 
+config VIDEO_PCI_SKELETON
+       tristate "Skeleton PCI V4L2 driver"
+       depends on PCI && BUILD_DOCSRC
+       depends on VIDEO_V4L2 && VIDEOBUF2_CORE
+       depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG
+       ---help---
+         Enable build of the skeleton PCI driver, used as a reference
+         when developing new drivers.
+
 # Used by drivers that need tuner.ko
 config VIDEO_TUNER
        tristate