diff options
author | Joshua Clayton <stillcompiling@gmail.com> | 2015-11-18 17:30:37 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-23 09:54:01 -0500 |
commit | 5eca4d843f9f0c3140a8657ba2f8217ee6c08c11 (patch) | |
tree | 207aaf175ef415b4569f4637f26630af1aac0c19 | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
spi: Move spi code from Documentation to tools
Jon Corbet requested this code moved with the last changeset,
https://lkml.org/lkml/2015/3/1/144,
but the patch was not applied because it missed the Makefile.
Moved spidev_test, spidev_fdx and their Makefile infrastructure.
Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/Makefile | 2 | ||||
-rw-r--r-- | Documentation/spi/Makefile | 8 | ||||
-rw-r--r-- | tools/Makefile | 7 | ||||
-rw-r--r-- | tools/spi/Makefile | 4 | ||||
-rw-r--r-- | tools/spi/spidev_fdx.c (renamed from Documentation/spi/spidev_fdx.c) | 0 | ||||
-rw-r--r-- | tools/spi/spidev_test.c (renamed from Documentation/spi/spidev_test.c) | 0 |
6 files changed, 9 insertions, 12 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index bc0548201755..1207d7907650 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | subdir-y := accounting auxdisplay blackfin connector \ | 1 | subdir-y := accounting auxdisplay blackfin connector \ |
2 | filesystems filesystems ia64 laptops mic misc-devices \ | 2 | filesystems filesystems ia64 laptops mic misc-devices \ |
3 | networking pcmcia prctl ptp spi timers vDSO video4linux \ | 3 | networking pcmcia prctl ptp timers vDSO video4linux \ |
4 | watchdog | 4 | watchdog |
diff --git a/Documentation/spi/Makefile b/Documentation/spi/Makefile deleted file mode 100644 index efa255813e9d..000000000000 --- a/Documentation/spi/Makefile +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | # List of programs to build | ||
2 | hostprogs-y := spidev_test spidev_fdx | ||
3 | |||
4 | # Tell kbuild to always build the programs | ||
5 | always := $(hostprogs-y) | ||
6 | |||
7 | HOSTCFLAGS_spidev_test.o += -I$(objtree)/usr/include | ||
8 | HOSTCFLAGS_spidev_fdx.o += -I$(objtree)/usr/include | ||
diff --git a/tools/Makefile b/tools/Makefile index d6f307dfb1a3..0528aa13ccb4 100644 --- a/tools/Makefile +++ b/tools/Makefile | |||
@@ -17,6 +17,7 @@ help: | |||
17 | @echo ' lguest - a minimal 32-bit x86 hypervisor' | 17 | @echo ' lguest - a minimal 32-bit x86 hypervisor' |
18 | @echo ' perf - Linux performance measurement and analysis tool' | 18 | @echo ' perf - Linux performance measurement and analysis tool' |
19 | @echo ' selftests - various kernel selftests' | 19 | @echo ' selftests - various kernel selftests' |
20 | @echo ' spi - spi tools' | ||
20 | @echo ' turbostat - Intel CPU idle stats and freq reporting tool' | 21 | @echo ' turbostat - Intel CPU idle stats and freq reporting tool' |
21 | @echo ' usb - USB testing tools' | 22 | @echo ' usb - USB testing tools' |
22 | @echo ' virtio - vhost test module' | 23 | @echo ' virtio - vhost test module' |
@@ -48,7 +49,7 @@ acpi: FORCE | |||
48 | cpupower: FORCE | 49 | cpupower: FORCE |
49 | $(call descend,power/$@) | 50 | $(call descend,power/$@) |
50 | 51 | ||
51 | cgroup firewire hv guest usb virtio vm net iio: FORCE | 52 | cgroup firewire hv guest spi usb virtio vm net iio: FORCE |
52 | $(call descend,$@) | 53 | $(call descend,$@) |
53 | 54 | ||
54 | liblockdep: FORCE | 55 | liblockdep: FORCE |
@@ -109,7 +110,7 @@ acpi_clean: | |||
109 | cpupower_clean: | 110 | cpupower_clean: |
110 | $(call descend,power/cpupower,clean) | 111 | $(call descend,power/cpupower,clean) |
111 | 112 | ||
112 | cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean iio_clean: | 113 | cgroup_clean hv_clean firewire_clean lguest_clean spi_clean usb_clean virtio_clean vm_clean net_clean iio_clean: |
113 | $(call descend,$(@:_clean=),clean) | 114 | $(call descend,$(@:_clean=),clean) |
114 | 115 | ||
115 | liblockdep_clean: | 116 | liblockdep_clean: |
@@ -134,7 +135,7 @@ freefall_clean: | |||
134 | $(call descend,laptop/freefall,clean) | 135 | $(call descend,laptop/freefall,clean) |
135 | 136 | ||
136 | clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \ | 137 | clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \ |
137 | perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \ | 138 | perf_clean selftests_clean turbostat_clean spi_clean usb_clean virtio_clean \ |
138 | vm_clean net_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ | 139 | vm_clean net_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ |
139 | freefall_clean | 140 | freefall_clean |
140 | 141 | ||
diff --git a/tools/spi/Makefile b/tools/spi/Makefile new file mode 100644 index 000000000000..cd0db62e4d9d --- /dev/null +++ b/tools/spi/Makefile | |||
@@ -0,0 +1,4 @@ | |||
1 | all: spidev_test spidev_fdx | ||
2 | |||
3 | clean: | ||
4 | $(RM) spidev_test spidev_fdx | ||
diff --git a/Documentation/spi/spidev_fdx.c b/tools/spi/spidev_fdx.c index 0ea3e51292fc..0ea3e51292fc 100644 --- a/Documentation/spi/spidev_fdx.c +++ b/tools/spi/spidev_fdx.c | |||
diff --git a/Documentation/spi/spidev_test.c b/tools/spi/spidev_test.c index 135b3f592b83..135b3f592b83 100644 --- a/Documentation/spi/spidev_test.c +++ b/tools/spi/spidev_test.c | |||