blob: ecdc2f84953b926613c4c4bdfc5427f369fd1d26 [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 ''
Lv Zhenga0c4acc2014-01-15 12:04:17 +08006 @echo ' acpi - ACPI tools'
Greg Thelen92e015b2013-01-04 13:05:17 -08007 @echo ' cgroup - cgroup tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +02008 @echo ' cpupower - a tool for all things x86 CPU power'
9 @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
10 @echo ' lguest - a minimal 32-bit x86 hypervisor'
11 @echo ' perf - Linux performance measurement and analysis tool'
12 @echo ' selftests - various kernel selftests'
13 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
14 @echo ' usb - USB testing tools'
15 @echo ' virtio - vhost test module'
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000016 @echo ' net - misc networking tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020017 @echo ' vm - misc vm tools'
18 @echo ' x86_energy_perf_policy - Intel energy policy tool'
Jacob Pan94f69962013-10-14 16:02:27 -070019 @echo ' tmon - thermal monitoring and tuning tool'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020020 @echo ''
Borislav Petkovea01fa92012-04-11 18:36:18 +020021 @echo 'You can do:'
Borislav Petkov7e010562013-01-29 11:48:11 +010022 @echo ' $$ make -C tools/ <tool>_install'
Borislav Petkovea01fa92012-04-11 18:36:18 +020023 @echo ''
24 @echo ' from the kernel command line to build and install one of'
25 @echo ' the tools above'
26 @echo ''
27 @echo ' $$ make tools/install'
28 @echo ''
29 @echo ' installs all tools.'
30 @echo ''
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020031 @echo 'Cleaning targets:'
32 @echo ''
33 @echo ' all of the above with the "_clean" string appended cleans'
34 @echo ' the respective build directory.'
35 @echo ' clean: a summary clean target to clean _all_ folders'
36
Lv Zhenga0c4acc2014-01-15 12:04:17 +080037acpi: FORCE
38 $(call descend,power/$@)
39
Borislav Petkov2363ecb2012-04-11 18:36:16 +020040cpupower: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000041 $(call descend,power/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020042
Linus Torvalds73287a42013-05-01 14:08:52 -070043cgroup firewire guest usb virtio vm net: FORCE
Borislav Petkov85c66be2013-02-20 16:32:30 +010044 $(call descend,$@)
45
46liblk: FORCE
47 $(call descend,lib/lk)
48
49perf: liblk FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000050 $(call descend,$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020051
52selftests: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000053 $(call descend,testing/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020054
55turbostat x86_energy_perf_policy: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000056 $(call descend,power/x86/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020057
Jacob Pan94f69962013-10-14 16:02:27 -070058tmon: FORCE
59 $(call descend,thermal/$@)
60
Lv Zhenga0c4acc2014-01-15 12:04:17 +080061acpi_install:
62 $(call descend,power/$(@:_install=),install)
63
Borislav Petkov2363ecb2012-04-11 18:36:16 +020064cpupower_install:
David Howellsca9dfc62012-11-05 15:15:24 +000065 $(call descend,power/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020066
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000067cgroup_install firewire_install lguest_install perf_install usb_install virtio_install vm_install net_install:
David Howellsca9dfc62012-11-05 15:15:24 +000068 $(call descend,$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020069
70selftests_install:
David Howellsca9dfc62012-11-05 15:15:24 +000071 $(call descend,testing/$(@:_clean=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020072
73turbostat_install x86_energy_perf_policy_install:
David Howellsca9dfc62012-11-05 15:15:24 +000074 $(call descend,power/x86/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020075
Jacob Pan94f69962013-10-14 16:02:27 -070076tmon_install:
77 $(call descend,thermal/$(@:_install=),install)
78
Lv Zhenga0c4acc2014-01-15 12:04:17 +080079install: acpi_install cgroup_install cpupower_install firewire_install lguest_install \
Greg Thelen92e015b2013-01-04 13:05:17 -080080 perf_install selftests_install turbostat_install usb_install \
Jacob Pan94f69962013-10-14 16:02:27 -070081 virtio_install vm_install net_install x86_energy_perf_policy_install \
82 tmon
Borislav Petkov2363ecb2012-04-11 18:36:16 +020083
Lv Zhenga0c4acc2014-01-15 12:04:17 +080084acpi_clean:
85 $(call descend,power/acpi,clean)
86
Borislav Petkov2363ecb2012-04-11 18:36:16 +020087cpupower_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000088 $(call descend,power/cpupower,clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020089
Linus Torvalds73287a42013-05-01 14:08:52 -070090cgroup_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
Borislav Petkov85c66be2013-02-20 16:32:30 +010091 $(call descend,$(@:_clean=),clean)
92
93liblk_clean:
94 $(call descend,lib/lk,clean)
95
96perf_clean: liblk_clean
David Howellsca9dfc62012-11-05 15:15:24 +000097 $(call descend,$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020098
99selftests_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000100 $(call descend,testing/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200101
102turbostat_clean x86_energy_perf_policy_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000103 $(call descend,power/x86/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200104
Jacob Pan94f69962013-10-14 16:02:27 -0700105tmon_clean:
106 $(call descend,thermal/tmon,clean)
107
Lv Zhenga0c4acc2014-01-15 12:04:17 +0800108clean: acpi_clean cgroup_clean cpupower_clean firewire_clean lguest_clean \
109 perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
Jacob Pan94f69962013-10-14 16:02:27 -0700110 vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200111
112.PHONY: FORCE