Blame view

tools/Makefile 3.33 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,$@)
0041898ec   S. Lockwood-Childs   tools/liblockdep:...
43
44
  liblockdep: FORCE
  	$(call descend,lib/lockdep)
553873e1d   Borislav Petkov   tools/: Convert t...
45
46
  libapikfs: FORCE
  	$(call descend,lib/api)
85c66be10   Borislav Petkov   perf tools: Intro...
47

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

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

3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
64
  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...
65
  	$(call descend,$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
66
67
  
  selftests_install:
ca9dfc6cc   David Howells   tools: Define a M...
68
  	$(call descend,testing/$(@:_clean=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
69
70
  
  turbostat_install x86_energy_perf_policy_install:
ca9dfc6cc   David Howells   tools: Define a M...
71
  	$(call descend,power/x86/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
72

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

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

3eb2094c5   Bjarke Istrup Pedersen   Adding makefile f...
85
  cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
85c66be10   Borislav Petkov   perf tools: Intro...
86
  	$(call descend,$(@:_clean=),clean)
0041898ec   S. Lockwood-Childs   tools/liblockdep:...
87
88
  liblockdep_clean:
  	$(call descend,lib/lockdep,clean)
553873e1d   Borislav Petkov   tools/: Convert t...
89
90
  libapikfs_clean:
  	$(call descend,lib/api,clean)
85c66be10   Borislav Petkov   perf tools: Intro...
91

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

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