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