Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Brown and committed by
Jiri Kosina
19f94f97 6ab0e475

+10 -1
+1 -1
Documentation/video4linux/Makefile
··· 1 - obj-m := v4l2-pci-skeleton.o 1 + obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
+9
drivers/media/v4l2-core/Kconfig
··· 25 25 26 26 When in doubt, say N. 27 27 28 + config VIDEO_PCI_SKELETON 29 + tristate "Skeleton PCI V4L2 driver" 30 + depends on PCI && BUILD_DOCSRC 31 + depends on VIDEO_V4L2 && VIDEOBUF2_CORE 32 + depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG 33 + ---help--- 34 + Enable build of the skeleton PCI driver, used as a reference 35 + when developing new drivers. 36 + 28 37 # Used by drivers that need tuner.ko 29 38 config VIDEO_TUNER 30 39 tristate