Blame view
tools/Makefile
5.91 KB
b24413180 License cleanup: ... |
1 |
# SPDX-License-Identifier: GPL-2.0 |
16671c1e1 tools build: Fix ... |
2 3 4 5 |
# Some of the tools (perf) use same make variables # as in kernel build. export srctree= export objtree= |
2363ecb17 tools: Add a topl... |
6 |
include scripts/Makefile.include |
d5dd8afb5 tools: Add a help... |
7 8 9 |
help: @echo 'Possible targets:' @echo '' |
20a7add8c tools: Fix format... |
10 |
@echo ' acpi - ACPI tools' |
38fe26b46 tools: Keep list ... |
11 |
@echo ' bpf - misc BPF tools' |
20a7add8c tools: Fix format... |
12 13 |
@echo ' cgroup - cgroup tools' @echo ' cpupower - a tool for all things x86 CPU power' |
4ab5a5d2a tools: add a kern... |
14 |
@echo ' debugging - tools for debugging' |
20a7add8c tools: Fix format... |
15 |
@echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer' |
1e5106031 tools: Add 'firmw... |
16 |
@echo ' firmware - Firmware tools' |
20a7add8c tools: Fix format... |
17 |
@echo ' freefall - laptop accelerometer program for disk protection' |
6d591c46b tools/gpio: creat... |
18 |
@echo ' gpio - GPIO tools' |
20a7add8c tools: Fix format... |
19 20 |
@echo ' hv - tools used when in Hyper-V clients' @echo ' iio - IIO tools' |
3fb4f7cd4 tools/power/x86: ... |
21 |
@echo ' intel-speed-select - Intel Speed Select tool' |
f9bc9e65f tools: Add kvm_st... |
22 |
@echo ' kvm_stat - top-like utility for displaying kvm statistics' |
fa7f32422 tools/leds: Add u... |
23 |
@echo ' leds - LEDs tools' |
24b4d0a1f tools: Add instal... |
24 |
@echo ' liblockdep - user-space wrapper for kernel locking-validator' |
38fe26b46 tools: Keep list ... |
25 |
@echo ' objtool - an ELF object analysis tool' |
1ce78ce09 tools: PCI: Chang... |
26 |
@echo ' pci - PCI tools' |
20a7add8c tools: Fix format... |
27 28 |
@echo ' perf - Linux performance measurement and analysis tool' @echo ' selftests - various kernel selftests' |
747a9b0a0 Merge branch 'per... |
29 |
@echo ' spi - spi tools' |
20a7add8c tools: Fix format... |
30 31 32 33 34 |
@echo ' tmon - thermal monitoring and tuning tool' @echo ' turbostat - Intel CPU idle stats and freq reporting tool' @echo ' usb - USB testing tools' @echo ' virtio - vhost test module' @echo ' vm - misc vm tools' |
9d64fc08f tools/wmi: add a ... |
35 |
@echo ' wmi - WMI interface examples' |
d5dd8afb5 tools: Add a help... |
36 37 |
@echo ' x86_energy_perf_policy - Intel energy policy tool' @echo '' |
ea01fa9f6 tools: Connect to... |
38 |
@echo 'You can do:' |
7e010562e tools: Correct ty... |
39 |
@echo ' $$ make -C tools/ <tool>_install' |
ea01fa9f6 tools: Connect to... |
40 41 42 43 |
@echo '' @echo ' from the kernel command line to build and install one of' @echo ' the tools above' @echo '' |
f6ba98c5d tools: Add a "mak... |
44 45 46 47 |
@echo ' $$ make tools/all' @echo '' @echo ' builds all tools.' @echo '' |
ea01fa9f6 tools: Connect to... |
48 49 50 51 |
@echo ' $$ make tools/install' @echo '' @echo ' installs all tools.' @echo '' |
d5dd8afb5 tools: Add a help... |
52 53 54 55 56 |
@echo 'Cleaning targets:' @echo '' @echo ' all of the above with the "_clean" string appended cleans' @echo ' the respective build directory.' @echo ' clean: a summary clean target to clean _all_ folders' |
a0c4acc09 ACPICA: acpidump:... |
57 58 |
acpi: FORCE $(call descend,power/$@) |
2363ecb17 tools: Add a topl... |
59 |
cpupower: FORCE |
ca9dfc6cc tools: Define a M... |
60 |
$(call descend,power/$@) |
2363ecb17 tools: Add a topl... |
61 |
|
7c11fcc5a Merge branch 'tho... |
62 |
cgroup firewire hv guest spi usb virtio vm bpf iio gpio objtool leds wmi pci firmware debugging: FORCE |
85c66be10 perf tools: Intro... |
63 |
$(call descend,$@) |
0041898ec tools/liblockdep:... |
64 65 |
liblockdep: FORCE $(call descend,lib/lockdep) |
379a9a28a tools build: No n... |
66 |
libapi: FORCE |
553873e1d tools/: Convert t... |
67 |
$(call descend,lib/api) |
85c66be10 perf tools: Intro... |
68 |
|
16671c1e1 tools build: Fix ... |
69 70 71 |
# The perf build does not follow the descend function setup, # invoking it via it's own make rule. PERF_O = $(if $(O),$(O)/tools/perf,) |
379a9a28a tools build: No n... |
72 |
perf: FORCE |
16671c1e1 tools build: Fix ... |
73 74 |
$(Q)mkdir -p $(PERF_O) . $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= |
2363ecb17 tools: Add a topl... |
75 76 |
selftests: FORCE |
ca9dfc6cc tools: Define a M... |
77 |
$(call descend,testing/$@) |
2363ecb17 tools: Add a topl... |
78 |
|
3fb4f7cd4 tools/power/x86: ... |
79 |
turbostat x86_energy_perf_policy intel-speed-select: FORCE |
ca9dfc6cc tools: Define a M... |
80 |
$(call descend,power/x86/$@) |
2363ecb17 tools: Add a topl... |
81 |
|
94f69966f tools/thermal: In... |
82 83 |
tmon: FORCE $(call descend,thermal/$@) |
b3fd7368f Move freefall pro... |
84 85 |
freefall: FORCE $(call descend,laptop/$@) |
ee5f7d79a tools/kvm: fix to... |
86 87 |
kvm_stat: FORCE $(call descend,kvm/$@) |
ecda85e70 x86/lguest: Remov... |
88 |
all: acpi cgroup cpupower gpio hv firewire liblockdep \ |
e9d4650dc spi: tools: add i... |
89 |
perf selftests spi turbostat usb \ |
a92bb546c tools: rename too... |
90 |
virtio vm bpf x86_energy_perf_policy \ |
4ab5a5d2a tools: add a kern... |
91 92 |
tmon freefall iio objtool kvm_stat wmi \ pci debugging |
f6ba98c5d tools: Add a "mak... |
93 |
|
a0c4acc09 ACPICA: acpidump:... |
94 95 |
acpi_install: $(call descend,power/$(@:_install=),install) |
2363ecb17 tools: Add a topl... |
96 |
cpupower_install: |
ca9dfc6cc tools: Define a M... |
97 |
$(call descend,power/$(@:_install=),install) |
2363ecb17 tools: Add a topl... |
98 |
|
4ab5a5d2a tools: add a kern... |
99 |
cgroup_install firewire_install gpio_install hv_install iio_install perf_install spi_install usb_install virtio_install vm_install bpf_install objtool_install wmi_install pci_install debugging_install: |
ca9dfc6cc tools: Define a M... |
100 |
$(call descend,$(@:_install=),install) |
2363ecb17 tools: Add a topl... |
101 |
|
24b4d0a1f tools: Add instal... |
102 103 |
liblockdep_install: $(call descend,lib/lockdep,install) |
2363ecb17 tools: Add a topl... |
104 |
selftests_install: |
9a13c6587 tools: Fix selfte... |
105 |
$(call descend,testing/$(@:_install=),install) |
2363ecb17 tools: Add a topl... |
106 |
|
3fb4f7cd4 tools/power/x86: ... |
107 |
turbostat_install x86_energy_perf_policy_install intel-speed-select_install: |
ca9dfc6cc tools: Define a M... |
108 |
$(call descend,power/x86/$(@:_install=),install) |
2363ecb17 tools: Add a topl... |
109 |
|
94f69966f tools/thermal: In... |
110 111 |
tmon_install: $(call descend,thermal/$(@:_install=),install) |
b3fd7368f Move freefall pro... |
112 113 |
freefall_install: $(call descend,laptop/$(@:_install=),install) |
f9bc9e65f tools: Add kvm_st... |
114 115 |
kvm_stat_install: $(call descend,kvm/$(@:_install=),install) |
534991092 tools/gpio: add i... |
116 |
install: acpi_install cgroup_install cpupower_install gpio_install \ |
bf1d6b2c7 Merge tag 'stagin... |
117 |
hv_install firewire_install iio_install liblockdep_install \ |
92e015b1c cgroups: move cgr... |
118 |
perf_install selftests_install turbostat_install usb_install \ |
a92bb546c tools: rename too... |
119 |
virtio_install vm_install bpf_install x86_energy_perf_policy_install \ |
9d64fc08f tools/wmi: add a ... |
120 |
tmon_install freefall_install objtool_install kvm_stat_install \ |
3fb4f7cd4 tools/power/x86: ... |
121 |
wmi_install pci_install debugging_install intel-speed-select_install |
2363ecb17 tools: Add a topl... |
122 |
|
a0c4acc09 ACPICA: acpidump:... |
123 124 |
acpi_clean: $(call descend,power/acpi,clean) |
2363ecb17 tools: Add a topl... |
125 |
cpupower_clean: |
ca9dfc6cc tools: Define a M... |
126 |
$(call descend,power/cpupower,clean) |
2363ecb17 tools: Add a topl... |
127 |
|
7c11fcc5a Merge branch 'tho... |
128 |
cgroup_clean hv_clean firewire_clean spi_clean usb_clean virtio_clean vm_clean wmi_clean bpf_clean iio_clean gpio_clean objtool_clean leds_clean pci_clean firmware_clean debugging_clean: |
85c66be10 perf tools: Intro... |
129 |
$(call descend,$(@:_clean=),clean) |
0041898ec tools/liblockdep:... |
130 131 |
liblockdep_clean: $(call descend,lib/lockdep,clean) |
379a9a28a tools build: No n... |
132 |
libapi_clean: |
553873e1d tools/: Convert t... |
133 |
$(call descend,lib/api,clean) |
85c66be10 perf tools: Intro... |
134 |
|
2f5a7f1d1 tools: Add clean ... |
135 136 137 138 139 |
libbpf_clean: $(call descend,lib/bpf,clean) libsubcmd_clean: $(call descend,lib/subcmd,clean) |
379a9a28a tools build: No n... |
140 |
perf_clean: |
ab362f5a9 tools build: Fix ... |
141 142 |
$(Q)mkdir -p $(PERF_O) . $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean |
2363ecb17 tools: Add a topl... |
143 144 |
selftests_clean: |
ca9dfc6cc tools: Define a M... |
145 |
$(call descend,testing/$(@:_clean=),clean) |
2363ecb17 tools: Add a topl... |
146 |
|
3fb4f7cd4 tools/power/x86: ... |
147 |
turbostat_clean x86_energy_perf_policy_clean intel-speed-select_clean: |
ca9dfc6cc tools: Define a M... |
148 |
$(call descend,power/x86/$(@:_clean=),clean) |
2363ecb17 tools: Add a topl... |
149 |
|
94f69966f tools/thermal: In... |
150 151 |
tmon_clean: $(call descend,thermal/tmon,clean) |
b3fd7368f Move freefall pro... |
152 153 |
freefall_clean: $(call descend,laptop/freefall,clean) |
2f5a7f1d1 tools: Add clean ... |
154 155 |
build_clean: $(call descend,build,clean) |
ecda85e70 x86/lguest: Remov... |
156 |
clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean \ |
5eca4d843 spi: Move spi cod... |
157 |
perf_clean selftests_clean turbostat_clean spi_clean usb_clean virtio_clean \ |
a92bb546c tools: rename too... |
158 |
vm_clean bpf_clean iio_clean x86_energy_perf_policy_clean tmon_clean \ |
6d591c46b tools/gpio: creat... |
159 |
freefall_clean build_clean libbpf_clean libsubcmd_clean liblockdep_clean \ |
3fb4f7cd4 tools/power/x86: ... |
160 161 |
gpio_clean objtool_clean leds_clean wmi_clean pci_clean firmware_clean debugging_clean \ intel-speed-select_clean |
2363ecb17 tools: Add a topl... |
162 163 |
.PHONY: FORCE |