提交 19f94f97 编写于 作者: M Mark Brown 提交者: Jiri Kosina

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: NMark Brown <broonie@linaro.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org> [added VIDEO dependencies]
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 6ab0e475
obj-m := v4l2-pci-skeleton.o obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
...@@ -25,6 +25,15 @@ config VIDEO_FIXED_MINOR_RANGES ...@@ -25,6 +25,15 @@ config VIDEO_FIXED_MINOR_RANGES
When in doubt, say N. 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 # Used by drivers that need tuner.ko
config VIDEO_TUNER config VIDEO_TUNER
tristate tristate
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册