summaryrefslogtreecommitdiffstats
path: root/samples/v4l/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-04-25 15:17:21 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-05-09 23:34:37 +0200
commit0185f850176201260e0f02c5bccca1defb8e0884 (patch)
tree18a0c368c5a56601fcc8c13a6b12a2f1218e0150 /samples/v4l/Makefile
parent[media] dib0700: add USB ID for another STK8096-PVR ref design based card (diff)
downloadlinux-0185f850176201260e0f02c5bccca1defb8e0884.tar.xz
linux-0185f850176201260e0f02c5bccca1defb8e0884.zip
[media] samples: v4l: from Documentation to samples directory
With the new autoksyms support, we can run into a situation where the v4l pci skeleton module is the only one using some exported symbols that get dropped because they are never referenced by the kernel otherwise, causing a build problem: ERROR: "vb2_dma_contig_memops" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "vb2_dma_contig_init_ctx_attrs" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "v4l2_match_dv_timings" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "v4l2_find_dv_timings_cap" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "v4l2_valid_dv_timings" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "v4l2_enum_dv_timings_cap" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! ERROR: "vb2_dma_contig_cleanup_ctx" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined! Specifically, we do look in the samples directory for users of symbols, but not the Documentation directory. This solves the build problem by moving the connector sample into the same directory as the other samples. Fixes: 23121ca2b56b ("kbuild: create/adjust generated/autoksyms.h") Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'samples/v4l/Makefile')
-rw-r--r--samples/v4l/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/v4l/Makefile b/samples/v4l/Makefile
new file mode 100644
index 000000000000..65a351d75c95
--- /dev/null
+++ b/samples/v4l/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o