Skip to contentSkip to conversation

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

PATCH In review Mark Brown 2 participants 4 messages Aug 26, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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
index d58101e788fc..65a351d75c95 100644
@@ -1 +1 @@
-obj-m := v4l2-pci-skeleton.o
+obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
drivers/media/v4l2-core/Kconfig +7 -0
index 9ca0f8d59a14..2b368f711c9e 100644
@@ -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
#1 lore raw

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_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
index d58101e788fc..65a351d75c95 100644
@@ -1 +1 @@
-obj-m := v4l2-pci-skeleton.o
+obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
drivers/media/v4l2-core/Kconfig +7 -0
index 9ca0f8d59a14..2b368f711c9e 100644
@@ -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
author
#2 lore raw
Quoted 2 lines · Hans Verkuil

Against which kernel is this? Documentation/video4linux/Makefile doesn't exist in either the mainline kernel or the media_tree git repo.

This is against -next, looks like the bug is in the Documentation tree...

#3 lore raw
In reply to Mark Brown
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_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
index d58101e788fc..65a351d75c95 100644
@@ -1 +1 @@
-obj-m := v4l2-pci-skeleton.o
+obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
drivers/media/v4l2-core/Kconfig +0 -0
index 9ca0f8d59a14..2b368f711c9e 100644

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