diff options
author | Shuah Khan <shuahkh@osg.samsung.com> | 2016-10-06 18:00:50 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-10-10 09:12:02 -0400 |
commit | 184892925118d924aa9304b466946ae18c029932 (patch) | |
tree | 59b5e82d76e4095c8ab3b47055f9277cdabb303a | |
parent | a67cd5482f37a255b9990ddb942aa7009dcba12f (diff) |
samples: move blackfin gptimers-example from Documentation
Move blackfin gptimers-example to samples and remove it from Documentation
Makefile. Update samples Kconfig and Makefile to build gptimers-example.
blackfin is the last CONFIG_BUILD_DOCSRC target in Documentation/Makefile.
Hence this patch also includes changes to remove CONFIG_BUILD_DOCSRC from
Makefile and lib/Kconfig.debug and updates VIDEO_PCI_SKELETON dependency
on BUILD_DOCSRC.
Documentation/Makefile is not deleted to avoid braking make htmldocs and
make distclean.
Acked-by: Michal Marek <mmarek@suse.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reported-by: Valentin Rothberg <valentinrothberg@gmail.com>
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
-rw-r--r-- | Documentation/Makefile | 2 | ||||
-rw-r--r-- | Documentation/blackfin/00-INDEX | 4 | ||||
-rw-r--r-- | Documentation/blackfin/Makefile | 5 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | drivers/media/v4l2-core/Kconfig | 2 | ||||
-rw-r--r-- | lib/Kconfig.debug | 9 | ||||
-rw-r--r-- | samples/Kconfig | 6 | ||||
-rw-r--r-- | samples/Makefile | 2 | ||||
-rw-r--r-- | samples/blackfin/Makefile | 1 | ||||
-rw-r--r-- | samples/blackfin/gptimers-example.c (renamed from Documentation/blackfin/gptimers-example.c) | 0 |
10 files changed, 10 insertions, 24 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 84359654cfcb..c2a469112c37 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile | |||
@@ -1 +1 @@ | |||
subdir-y := blackfin | subdir-y := | ||
diff --git a/Documentation/blackfin/00-INDEX b/Documentation/blackfin/00-INDEX index c54fcdd4ae9f..265a1effebde 100644 --- a/Documentation/blackfin/00-INDEX +++ b/Documentation/blackfin/00-INDEX | |||
@@ -1,10 +1,6 @@ | |||
1 | 00-INDEX | 1 | 00-INDEX |
2 | - This file | 2 | - This file |
3 | Makefile | ||
4 | - Makefile for gptimers example file. | ||
5 | bfin-gpio-notes.txt | 3 | bfin-gpio-notes.txt |
6 | - Notes in developing/using bfin-gpio driver. | 4 | - Notes in developing/using bfin-gpio driver. |
7 | bfin-spi-notes.txt | 5 | bfin-spi-notes.txt |
8 | - Notes for using bfin spi bus driver. | 6 | - Notes for using bfin spi bus driver. |
9 | gptimers-example.c | ||
10 | - gptimers example | ||
diff --git a/Documentation/blackfin/Makefile b/Documentation/blackfin/Makefile deleted file mode 100644 index 6782c58fbc29..000000000000 --- a/Documentation/blackfin/Makefile +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | ifneq ($(CONFIG_BLACKFIN),) | ||
2 | ifneq ($(CONFIG_BFIN_GPTIMERS),) | ||
3 | obj-m := gptimers-example.o | ||
4 | endif | ||
5 | endif | ||
@@ -933,9 +933,6 @@ vmlinux_prereq: $(vmlinux-deps) FORCE | |||
933 | ifdef CONFIG_HEADERS_CHECK | 933 | ifdef CONFIG_HEADERS_CHECK |
934 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check | 934 | $(Q)$(MAKE) -f $(srctree)/Makefile headers_check |
935 | endif | 935 | endif |
936 | ifdef CONFIG_BUILD_DOCSRC | ||
937 | $(Q)$(MAKE) $(build)=Documentation | ||
938 | endif | ||
939 | ifdef CONFIG_GDB_SCRIPTS | 936 | ifdef CONFIG_GDB_SCRIPTS |
940 | $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py | 937 | $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py |
941 | endif | 938 | endif |
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig index 29b3436d0910..367523a3c774 100644 --- a/drivers/media/v4l2-core/Kconfig +++ b/drivers/media/v4l2-core/Kconfig | |||
@@ -27,7 +27,7 @@ config VIDEO_FIXED_MINOR_RANGES | |||
27 | 27 | ||
28 | config VIDEO_PCI_SKELETON | 28 | config VIDEO_PCI_SKELETON |
29 | tristate "Skeleton PCI V4L2 driver" | 29 | tristate "Skeleton PCI V4L2 driver" |
30 | depends on PCI && BUILD_DOCSRC | 30 | depends on PCI |
31 | depends on VIDEO_V4L2 && VIDEOBUF2_CORE | 31 | depends on VIDEO_V4L2 && VIDEOBUF2_CORE |
32 | depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG | 32 | depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG |
33 | ---help--- | 33 | ---help--- |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2307d7c89dac..a6620838afc3 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1875,15 +1875,6 @@ config PROVIDE_OHCI1394_DMA_INIT | |||
1875 | 1875 | ||
1876 | See Documentation/debugging-via-ohci1394.txt for more information. | 1876 | See Documentation/debugging-via-ohci1394.txt for more information. |
1877 | 1877 | ||
1878 | config BUILD_DOCSRC | ||
1879 | bool "Build targets in Documentation/ tree" | ||
1880 | depends on HEADERS_CHECK | ||
1881 | help | ||
1882 | This option attempts to build objects from the source files in the | ||
1883 | kernel Documentation/ tree. | ||
1884 | |||
1885 | Say N if you are unsure. | ||
1886 | |||
1887 | config DMA_API_DEBUG | 1878 | config DMA_API_DEBUG |
1888 | bool "Enable debugging of DMA-API usage" | 1879 | bool "Enable debugging of DMA-API usage" |
1889 | depends on HAVE_DMA_API_DEBUG | 1880 | depends on HAVE_DMA_API_DEBUG |
diff --git a/samples/Kconfig b/samples/Kconfig index 85c405fcccb0..a6d2a43bbf2e 100644 --- a/samples/Kconfig +++ b/samples/Kconfig | |||
@@ -99,4 +99,10 @@ config SAMPLE_SECCOMP | |||
99 | Build samples of seccomp filters using various methods of | 99 | Build samples of seccomp filters using various methods of |
100 | BPF filter construction. | 100 | BPF filter construction. |
101 | 101 | ||
102 | config SAMPLE_BLACKFIN_GPTIMERS | ||
103 | tristate "Build blackfin gptimers sample code -- loadable modules only" | ||
104 | depends on BLACKFIN && BFIN_GPTIMERS && m | ||
105 | help | ||
106 | Build samples of blackfin gptimers sample module. | ||
107 | |||
102 | endif # SAMPLES | 108 | endif # SAMPLES |
diff --git a/samples/Makefile b/samples/Makefile index 1a20169d85ac..e17d66d77f09 100644 --- a/samples/Makefile +++ b/samples/Makefile | |||
@@ -2,4 +2,4 @@ | |||
2 | 2 | ||
3 | obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \ | 3 | obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \ |
4 | hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ | 4 | hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ |
5 | configfs/ connector/ v4l/ trace_printk/ | 5 | configfs/ connector/ v4l/ trace_printk/ blackfin/ |
diff --git a/samples/blackfin/Makefile b/samples/blackfin/Makefile new file mode 100644 index 000000000000..89b86cfd83a2 --- /dev/null +++ b/samples/blackfin/Makefile | |||
@@ -0,0 +1 @@ | |||
obj-$(CONFIG_SAMPLE_BLACKFIN_GPTIMERS) += gptimers-example.o | |||
diff --git a/Documentation/blackfin/gptimers-example.c b/samples/blackfin/gptimers-example.c index 283eba993d9d..283eba993d9d 100644 --- a/Documentation/blackfin/gptimers-example.c +++ b/samples/blackfin/gptimers-example.c | |||