v4l2-pci-skeleton: Only build if PCI is available
Subsystems (2)
PATCH 1/1 v4l2-pci-skeleton: Only build if PCI is available
From: Mark Brown <[email protected]>
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.
--- Documentation/video4linux/Makefile | 2 +- drivers/media/v4l2-core/Kconfig | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
Documentation/video4linux/Makefile +1 -1
@@ -1 +1 @@ -obj-m := v4l2-pci-skeleton.o +obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
drivers/media/v4l2-core/Kconfig +7 -0
@@ -25,6 +25,13 @@ config VIDEO_FIXED_MINOR_RANGES When in doubt, say N. +config VIDEO_PCI_SKELETON + tristate "Skeleton PCI V4L2 driver" + depends on PCI && COMPILE_TEST + ---help--- + Enable build of the skeleton PCI driver, used as a reference + when developign new drivers. + # Used by drivers that need tuner.ko config VIDEO_TUNER tristate
Signature · 1 line
2.1.0.rc1
Against which kernel is this? Documentation/video4linux/Makefile doesn't exist in either the mainline kernel or the media_tree git repo.
Regards,
Hans
Quoted 40 lines · Mark Brown
From: Mark Brown <[email protected]>
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_SKELETONfor the skeleton and conditionalising the build on that.Signed-off-by Mark Brown <[email protected]>--- Documentation/video4linux/Makefile | 2 +- drivers/media/v4l2-core/Kconfig | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)Documentation/video4linux/Makefile +1
-1@@ -1 +1 @@ -obj-m := v4l2-pci-skeleton.o +obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.odrivers/media/v4l2-core/Kconfig +7
-0@@ -25,6 +25,13 @@ config VIDEO_FIXED_MINOR_RANGES When in doubt, say N. +config VIDEO_PCI_SKELETON + tristate "Skeleton PCI V4L2 driver" + depends on PCI && COMPILE_TEST + ---help--- + Enable build of the skeleton PCI driver, used as a reference + when developign new drivers. + # Used by drivers that need tuner.ko config VIDEO_TUNER tristate
Quoted 2 lines · Hans Verkuil
Against which kernel is this?
Documentation/video4linux/Makefiledoesn't exist in either the mainline kernel or themedia_treegit repo.
This is against -next, looks like the bug is in the Documentation tree...
Quoted 26 lines · Mark Brown
From: Mark Brown <[email protected]>
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_SKELETONfor the skeleton and conditionalising the build on that.Signed-off-by Mark Brown <[email protected]>--- Documentation/video4linux/Makefile | 2 +- drivers/media/v4l2-core/Kconfig | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)Documentation/video4linux/Makefile +1
-1@@ -1 +1 @@ -obj-m := v4l2-pci-skeleton.o +obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.odrivers/media/v4l2-core/Kconfig +0
-0
drivers/media/v4l2-core/Kconfig config VIDEO_FIXED_MINOR_RANGES · line 33
Quoted 9 lines
drivers/media/v4l2-core/Kconfig +6
-0@@ -25,6 +25,13 @@ config VIDEO_FIXED_MINOR_RANGES When in doubt, say N. +config VIDEO_PCI_SKELETON + tristate "Skeleton PCI V4L2 driver" + depends on PCI && COMPILE_TEST + ---help--- + Enable build of the skeleton PCI driver, used as a reference + when developign new drivers.
Typo: developign -> developing
Quoted 5 lines
drivers/media/v4l2-core/Kconfig +1
-0+ # Used by drivers that need tuner.ko config VIDEO_TUNER tristate