1 # Some of the tools (perf) use same make variables
6 include scripts/Makefile.include
9 @echo 'Possible targets:'
11 @echo ' acpi - ACPI tools'
12 @echo ' cgroup - cgroup tools'
13 @echo ' cpupower - a tool for all things x86 CPU power'
14 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
15 @echo ' hv - tools used when in Hyper-V clients'
16 @echo ' iio - IIO tools'
17 @echo ' lguest - a minimal 32-bit x86 hypervisor'
18 @echo ' perf - Linux performance measurement and analysis tool'
19 @echo ' selftests - various kernel selftests'
20 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
21 @echo ' usb - USB testing tools'
22 @echo ' virtio - vhost test module'
23 @echo ' net - misc networking tools'
24 @echo ' vm - misc vm tools'
25 @echo ' x86_energy_perf_policy - Intel energy policy tool'
26 @echo ' tmon - thermal monitoring and tuning tool'
27 @echo ' freefall - laptop accelerometer program for disk protection'
30 @echo ' $$ make -C tools/ <tool>_install'
32 @echo ' from the kernel command line to build and install one of'
33 @echo ' the tools above'
35 @echo ' $$ make tools/install'
37 @echo ' installs all tools.'
39 @echo 'Cleaning targets:'
41 @echo ' all of the above with the "_clean" string appended cleans'
42 @echo ' the respective build directory.'
43 @echo ' clean: a summary clean target to clean _all_ folders'
46 $(call descend,power/$@)
49 $(call descend,power/$@)
51 cgroup firewire hv guest usb virtio vm net iio: FORCE
55 $(call descend,lib/lockdep)
58 $(call descend,lib/api)
60 # The perf build does not follow the descend function setup,
61 # invoking it via it's own make rule.
62 PERF_O = $(if $(O),$(O)/tools/perf,)
65 $(Q)mkdir -p $(PERF_O) .
66 $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir=
69 $(call descend,testing/$@)
71 turbostat x86_energy_perf_policy: FORCE
72 $(call descend,power/x86/$@)
75 $(call descend,thermal/$@)
78 $(call descend,laptop/$@)
81 $(call descend,power/$(@:_install=),install)
84 $(call descend,power/$(@:_install=),install)
86 cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
87 $(call descend,$(@:_install=),install)
90 $(call descend,testing/$(@:_clean=),install)
92 turbostat_install x86_energy_perf_policy_install:
93 $(call descend,power/x86/$(@:_install=),install)
96 $(call descend,thermal/$(@:_install=),install)
99 $(call descend,laptop/$(@:_install=),install)
101 install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
102 perf_install selftests_install turbostat_install usb_install \
103 virtio_install vm_install net_install x86_energy_perf_policy_install \
104 tmon freefall_install
107 $(call descend,power/acpi,clean)
110 $(call descend,power/cpupower,clean)
112 cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean iio_clean:
113 $(call descend,$(@:_clean=),clean)
116 $(call descend,lib/lockdep,clean)
119 $(call descend,lib/api,clean)
122 $(call descend,$(@:_clean=),clean)
125 $(call descend,testing/$(@:_clean=),clean)
127 turbostat_clean x86_energy_perf_policy_clean:
128 $(call descend,power/x86/$(@:_clean=),clean)
131 $(call descend,thermal/tmon,clean)
134 $(call descend,laptop/freefall,clean)
136 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 vm_clean net_clean iio_clean x86_energy_perf_policy_clean tmon_clean \