v4l2-pci-skeleton: Only build if PCI is available

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>
This commit is contained in:
Mark Brown
2014-09-25 11:23:27 -07:00
committed by Jiri Kosina
parent 6ab0e475f1
commit 19f94f9700
2 changed files with 10 additions and 1 deletions

View File

@@ -1 +1 @@
obj-m := v4l2-pci-skeleton.o
obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o