blob: 41067f304215b132e077d569a5c2e8a79d382e2b [file] [log] [blame]
Borislav Petkov2363ecb2012-04-11 18:36:16 +02001include scripts/Makefile.include
2
Borislav Petkovd5dd8af2012-04-11 18:36:17 +02003help:
4 @echo 'Possible targets:'
5 @echo ''
Greg Thelen92e015b2013-01-04 13:05:17 -08006 @echo ' cgroup - cgroup tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +02007 @echo ' cpupower - a tool for all things x86 CPU power'
8 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
9 @echo ' lguest - a minimal 32-bit x86 hypervisor'
10 @echo ' perf - Linux performance measurement and analysis tool'
11 @echo ' selftests - various kernel selftests'
12 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
13 @echo ' usb - USB testing tools'
14 @echo ' virtio - vhost test module'
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000015 @echo ' net - misc networking tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020016 @echo ' vm - misc vm tools'
17 @echo ' x86_energy_perf_policy - Intel energy policy tool'
18 @echo ''
Borislav Petkovea01fa92012-04-11 18:36:18 +020019 @echo 'You can do:'
Borislav Petkov7e010562013-01-29 11:48:11 +010020 @echo ' $$ make -C tools/ <tool>_install'
Borislav Petkovea01fa92012-04-11 18:36:18 +020021 @echo ''
22 @echo ' from the kernel command line to build and install one of'
23 @echo ' the tools above'
24 @echo ''
25 @echo ' $$ make tools/install'
26 @echo ''
27 @echo ' installs all tools.'
28 @echo ''
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020029 @echo 'Cleaning targets:'
30 @echo ''
31 @echo ' all of the above with the "_clean" string appended cleans'
32 @echo ' the respective build directory.'
33 @echo ' clean: a summary clean target to clean _all_ folders'
34
Borislav Petkov2363ecb2012-04-11 18:36:16 +020035cpupower: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000036 $(call descend,power/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020037
Linus Torvalds73287a42013-05-01 14:08:52 -070038cgroup firewire guest usb virtio vm net: FORCE
Borislav Petkov85c66be2013-02-20 16:32:30 +010039 $(call descend,$@)
40
41liblk: FORCE
42 $(call descend,lib/lk)
43
44perf: liblk FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000045 $(call descend,$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020046
47selftests: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000048 $(call descend,testing/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020049
50turbostat x86_energy_perf_policy: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000051 $(call descend,power/x86/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020052
53cpupower_install:
David Howellsca9dfc62012-11-05 15:15:24 +000054 $(call descend,power/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020055
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000056cgroup_install firewire_install lguest_install perf_install usb_install virtio_install vm_install net_install:
David Howellsca9dfc62012-11-05 15:15:24 +000057 $(call descend,$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020058
59selftests_install:
David Howellsca9dfc62012-11-05 15:15:24 +000060 $(call descend,testing/$(@:_clean=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020061
62turbostat_install x86_energy_perf_policy_install:
David Howellsca9dfc62012-11-05 15:15:24 +000063 $(call descend,power/x86/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020064
Greg Thelen92e015b2013-01-04 13:05:17 -080065install: cgroup_install cpupower_install firewire_install lguest_install \
66 perf_install selftests_install turbostat_install usb_install \
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000067 virtio_install vm_install net_install x86_energy_perf_policy_install
Borislav Petkov2363ecb2012-04-11 18:36:16 +020068
69cpupower_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000070 $(call descend,power/cpupower,clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020071
Linus Torvalds73287a42013-05-01 14:08:52 -070072cgroup_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
Borislav Petkov85c66be2013-02-20 16:32:30 +010073 $(call descend,$(@:_clean=),clean)
74
75liblk_clean:
76 $(call descend,lib/lk,clean)
77
78perf_clean: liblk_clean
David Howellsca9dfc62012-11-05 15:15:24 +000079 $(call descend,$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020080
81selftests_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000082 $(call descend,testing/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020083
84turbostat_clean x86_energy_perf_policy_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000085 $(call descend,power/x86/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020086
Greg Thelen92e015b2013-01-04 13:05:17 -080087clean: cgroup_clean cpupower_clean firewire_clean lguest_clean perf_clean \
88 selftests_clean turbostat_clean usb_clean virtio_clean \
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000089 vm_clean net_clean x86_energy_perf_policy_clean
Borislav Petkov2363ecb2012-04-11 18:36:16 +020090
91.PHONY: FORCE