Blame view

tools/Makefile 3.24 KB
2363ecb17   Borislav Petkov   tools: Add a topl...
1
  include scripts/Makefile.include
d5dd8afb5   Borislav Petkov   tools: Add a help...
2
3
4
  help:
  	@echo 'Possible targets:'
  	@echo ''
a0c4acc09   Lv Zheng   ACPICA: acpidump:...
5
  	@echo '  acpi       - ACPI tools'
92e015b1c   Greg Thelen   cgroups: move cgr...
6
  	@echo '  cgroup     - cgroup tools'
d5dd8afb5   Borislav Petkov   tools: Add a help...
7
8
  	@echo '  cpupower   - a tool for all things x86 CPU power'
  	@echo '  firewire   - the userspace part of nosy, an IEEE-1394 traffic sniffer'
3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
9
  	@echo '  hv         - tools used when in Hyper-V clients'
d5dd8afb5   Borislav Petkov   tools: Add a help...
10
11
12
13
14
15
  	@echo '  lguest     - a minimal 32-bit x86 hypervisor'
  	@echo '  perf       - Linux performance measurement and analysis tool'
  	@echo '  selftests  - various kernel selftests'
  	@echo '  turbostat  - Intel CPU idle stats and freq reporting tool'
  	@echo '  usb        - USB testing tools'
  	@echo '  virtio     - vhost test module'
e306e2c13   Daniel Borkmann   filter: add minim...
16
  	@echo '  net        - misc networking tools'
d5dd8afb5   Borislav Petkov   tools: Add a help...
17
18
  	@echo '  vm         - misc vm tools'
  	@echo '  x86_energy_perf_policy - Intel energy policy tool'
94f69966f   Jacob Pan   tools/thermal: In...
19
  	@echo '  tmon       - thermal monitoring and tuning tool'
d5dd8afb5   Borislav Petkov   tools: Add a help...
20
  	@echo ''
ea01fa9f6   Borislav Petkov   tools: Connect to...
21
  	@echo 'You can do:'
7e010562e   Borislav Petkov   tools: Correct ty...
22
  	@echo ' $$ make -C tools/ <tool>_install'
ea01fa9f6   Borislav Petkov   tools: Connect to...
23
24
25
26
27
28
29
30
  	@echo ''
  	@echo '  from the kernel command line to build and install one of'
  	@echo '  the tools above'
  	@echo ''
  	@echo '  $$ make tools/install'
  	@echo ''
  	@echo '  installs all tools.'
  	@echo ''
d5dd8afb5   Borislav Petkov   tools: Add a help...
31
32
33
34
35
  	@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   Lv Zheng   ACPICA: acpidump:...
36
37
  acpi: FORCE
  	$(call descend,power/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
38
  cpupower: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
39
  	$(call descend,power/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
40

3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
41
  cgroup firewire hv guest usb virtio vm net: FORCE
85c66be10   Borislav Petkov   perf tools: Intro...
42
  	$(call descend,$@)
553873e1d   Borislav Petkov   tools/: Convert t...
43
44
  libapikfs: FORCE
  	$(call descend,lib/api)
85c66be10   Borislav Petkov   perf tools: Intro...
45

553873e1d   Borislav Petkov   tools/: Convert t...
46
  perf: libapikfs FORCE
ca9dfc6cc   David Howells   tools: Define a M...
47
  	$(call descend,$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
48
49
  
  selftests: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
50
  	$(call descend,testing/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
51
52
  
  turbostat x86_energy_perf_policy: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
53
  	$(call descend,power/x86/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
54

94f69966f   Jacob Pan   tools/thermal: In...
55
56
  tmon: FORCE
  	$(call descend,thermal/$@)
a0c4acc09   Lv Zheng   ACPICA: acpidump:...
57
58
  acpi_install:
  	$(call descend,power/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
59
  cpupower_install:
ca9dfc6cc   David Howells   tools: Define a M...
60
  	$(call descend,power/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
61

3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
62
  cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
ca9dfc6cc   David Howells   tools: Define a M...
63
  	$(call descend,$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
64
65
  
  selftests_install:
ca9dfc6cc   David Howells   tools: Define a M...
66
  	$(call descend,testing/$(@:_clean=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
67
68
  
  turbostat_install x86_energy_perf_policy_install:
ca9dfc6cc   David Howells   tools: Define a M...
69
  	$(call descend,power/x86/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
70

94f69966f   Jacob Pan   tools/thermal: In...
71
72
  tmon_install:
  	$(call descend,thermal/$(@:_install=),install)
3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
73
  install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
92e015b1c   Greg Thelen   cgroups: move cgr...
74
  		perf_install selftests_install turbostat_install usb_install \
94f69966f   Jacob Pan   tools/thermal: In...
75
76
  		virtio_install vm_install net_install x86_energy_perf_policy_install \
  	tmon
2363ecb17   Borislav Petkov   tools: Add a topl...
77

a0c4acc09   Lv Zheng   ACPICA: acpidump:...
78
79
  acpi_clean:
  	$(call descend,power/acpi,clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
80
  cpupower_clean:
ca9dfc6cc   David Howells   tools: Define a M...
81
  	$(call descend,power/cpupower,clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
82

3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
83
  cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
85c66be10   Borislav Petkov   perf tools: Intro...
84
  	$(call descend,$(@:_clean=),clean)
553873e1d   Borislav Petkov   tools/: Convert t...
85
86
  libapikfs_clean:
  	$(call descend,lib/api,clean)
85c66be10   Borislav Petkov   perf tools: Intro...
87

553873e1d   Borislav Petkov   tools/: Convert t...
88
  perf_clean: libapikfs_clean
ca9dfc6cc   David Howells   tools: Define a M...
89
  	$(call descend,$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
90
91
  
  selftests_clean:
ca9dfc6cc   David Howells   tools: Define a M...
92
  	$(call descend,testing/$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
93
94
  
  turbostat_clean x86_energy_perf_policy_clean:
ca9dfc6cc   David Howells   tools: Define a M...
95
  	$(call descend,power/x86/$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
96

94f69966f   Jacob Pan   tools/thermal: In...
97
98
  tmon_clean:
  	$(call descend,thermal/tmon,clean)
3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
99
  clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
a0c4acc09   Lv Zheng   ACPICA: acpidump:...
100
  		perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
94f69966f   Jacob Pan   tools/thermal: In...
101
  		vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
2363ecb17   Borislav Petkov   tools: Add a topl...
102
103
  
  .PHONY: FORCE