Blame view

tools/Makefile 2.92 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 ''
92e015b1c   Greg Thelen   cgroups: move cgr...
5
  	@echo '  cgroup     - cgroup tools'
d5dd8afb5   Borislav Petkov   tools: Add a help...
6
7
8
9
10
11
12
13
  	@echo '  cpupower   - a tool for all things x86 CPU power'
  	@echo '  firewire   - the userspace part of nosy, an IEEE-1394 traffic sniffer'
  	@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...
14
  	@echo '  net        - misc networking tools'
d5dd8afb5   Borislav Petkov   tools: Add a help...
15
16
  	@echo '  vm         - misc vm tools'
  	@echo '  x86_energy_perf_policy - Intel energy policy tool'
94f69966f   Jacob Pan   tools/thermal: In...
17
  	@echo '  tmon       - thermal monitoring and tuning tool'
d5dd8afb5   Borislav Petkov   tools: Add a help...
18
  	@echo ''
ea01fa9f6   Borislav Petkov   tools: Connect to...
19
  	@echo 'You can do:'
7e010562e   Borislav Petkov   tools: Correct ty...
20
  	@echo ' $$ make -C tools/ <tool>_install'
ea01fa9f6   Borislav Petkov   tools: Connect to...
21
22
23
24
25
26
27
28
  	@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...
29
30
31
32
33
  	@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'
2363ecb17   Borislav Petkov   tools: Add a topl...
34
  cpupower: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
35
  	$(call descend,power/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
36

73287a43c   Linus Torvalds   Merge git://git.k...
37
  cgroup firewire guest usb virtio vm net: FORCE
85c66be10   Borislav Petkov   perf tools: Intro...
38
39
40
41
42
43
  	$(call descend,$@)
  
  liblk: FORCE
  	$(call descend,lib/lk)
  
  perf: liblk FORCE
ca9dfc6cc   David Howells   tools: Define a M...
44
  	$(call descend,$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
45
46
  
  selftests: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
47
  	$(call descend,testing/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
48
49
  
  turbostat x86_energy_perf_policy: FORCE
ca9dfc6cc   David Howells   tools: Define a M...
50
  	$(call descend,power/x86/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
51

94f69966f   Jacob Pan   tools/thermal: In...
52
53
  tmon: FORCE
  	$(call descend,thermal/$@)
2363ecb17   Borislav Petkov   tools: Add a topl...
54
  cpupower_install:
ca9dfc6cc   David Howells   tools: Define a M...
55
  	$(call descend,power/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
56

e306e2c13   Daniel Borkmann   filter: add minim...
57
  cgroup_install firewire_install lguest_install perf_install usb_install virtio_install vm_install net_install:
ca9dfc6cc   David Howells   tools: Define a M...
58
  	$(call descend,$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
59
60
  
  selftests_install:
ca9dfc6cc   David Howells   tools: Define a M...
61
  	$(call descend,testing/$(@:_clean=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
62
63
  
  turbostat_install x86_energy_perf_policy_install:
ca9dfc6cc   David Howells   tools: Define a M...
64
  	$(call descend,power/x86/$(@:_install=),install)
2363ecb17   Borislav Petkov   tools: Add a topl...
65

94f69966f   Jacob Pan   tools/thermal: In...
66
67
  tmon_install:
  	$(call descend,thermal/$(@:_install=),install)
92e015b1c   Greg Thelen   cgroups: move cgr...
68
69
  install: cgroup_install cpupower_install firewire_install lguest_install \
  		perf_install selftests_install turbostat_install usb_install \
94f69966f   Jacob Pan   tools/thermal: In...
70
71
  		virtio_install vm_install net_install x86_energy_perf_policy_install \
  	tmon
2363ecb17   Borislav Petkov   tools: Add a topl...
72
73
  
  cpupower_clean:
ca9dfc6cc   David Howells   tools: Define a M...
74
  	$(call descend,power/cpupower,clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
75

73287a43c   Linus Torvalds   Merge git://git.k...
76
  cgroup_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
85c66be10   Borislav Petkov   perf tools: Intro...
77
78
79
80
81
82
  	$(call descend,$(@:_clean=),clean)
  
  liblk_clean:
  	$(call descend,lib/lk,clean)
  
  perf_clean: liblk_clean
ca9dfc6cc   David Howells   tools: Define a M...
83
  	$(call descend,$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
84
85
  
  selftests_clean:
ca9dfc6cc   David Howells   tools: Define a M...
86
  	$(call descend,testing/$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
87
88
  
  turbostat_clean x86_energy_perf_policy_clean:
ca9dfc6cc   David Howells   tools: Define a M...
89
  	$(call descend,power/x86/$(@:_clean=),clean)
2363ecb17   Borislav Petkov   tools: Add a topl...
90

94f69966f   Jacob Pan   tools/thermal: In...
91
92
  tmon_clean:
  	$(call descend,thermal/tmon,clean)
92e015b1c   Greg Thelen   cgroups: move cgr...
93
94
  clean: cgroup_clean cpupower_clean firewire_clean lguest_clean perf_clean \
  		selftests_clean turbostat_clean usb_clean virtio_clean \
94f69966f   Jacob Pan   tools/thermal: In...
95
  		vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
2363ecb17   Borislav Petkov   tools: Add a topl...
96
97
  
  .PHONY: FORCE