Skip to content

Commit 1848929

Browse files
author
Shuah Khan
committedOct 10, 2016
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 <[email protected]> Acked-by: Jonathan Corbet <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reported-by: Valentin Rothberg <[email protected]> Reported-by: Paul Gortmaker <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent a67cd54 commit 1848929

File tree

10 files changed

+10
-24
lines changed

10 files changed

+10
-24
lines changed
 

‎Documentation/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
subdir-y := blackfin
1+
subdir-y :=

‎Documentation/blackfin/00-INDEX

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
00-INDEX
22
- This file
3-
Makefile
4-
- Makefile for gptimers example file.
53
bfin-gpio-notes.txt
64
- Notes in developing/using bfin-gpio driver.
75
bfin-spi-notes.txt
86
- Notes for using bfin spi bus driver.
9-
gptimers-example.c
10-
- gptimers example

‎Documentation/blackfin/Makefile

-5
This file was deleted.

‎Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,6 @@ vmlinux_prereq: $(vmlinux-deps) FORCE
933933
ifdef CONFIG_HEADERS_CHECK
934934
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
935935
endif
936-
ifdef CONFIG_BUILD_DOCSRC
937-
$(Q)$(MAKE) $(build)=Documentation
938-
endif
939936
ifdef CONFIG_GDB_SCRIPTS
940937
$(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
941938
endif

‎drivers/media/v4l2-core/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ config VIDEO_FIXED_MINOR_RANGES
2727

2828
config VIDEO_PCI_SKELETON
2929
tristate "Skeleton PCI V4L2 driver"
30-
depends on PCI && BUILD_DOCSRC
30+
depends on PCI
3131
depends on VIDEO_V4L2 && VIDEOBUF2_CORE
3232
depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG
3333
---help---

‎lib/Kconfig.debug

-9
Original file line numberDiff line numberDiff line change
@@ -1875,15 +1875,6 @@ config PROVIDE_OHCI1394_DMA_INIT
18751875

18761876
See Documentation/debugging-via-ohci1394.txt for more information.
18771877

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-
18871878
config DMA_API_DEBUG
18881879
bool "Enable debugging of DMA-API usage"
18891880
depends on HAVE_DMA_API_DEBUG

‎samples/Kconfig

+6
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,10 @@ config SAMPLE_SECCOMP
9999
Build samples of seccomp filters using various methods of
100100
BPF filter construction.
101101

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+
102108
endif # SAMPLES

‎samples/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
44
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
5-
configfs/ connector/ v4l/ trace_printk/
5+
configfs/ connector/ v4l/ trace_printk/ blackfin/

‎samples/blackfin/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_SAMPLE_BLACKFIN_GPTIMERS) += gptimers-example.o
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.