blob: 79463b00b81e0dd36f92a10829d8ca4d3af6e4f3 [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 Thelen92e015b12013-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'
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000010 @echo ' hv - tools used when in Hyper-V clients'
Roberta Dobrescu53375102015-03-28 21:43:08 +020011 @echo ' iio - IIO tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020012 @echo ' lguest - a minimal 32-bit x86 hypervisor'
13 @echo ' perf - Linux performance measurement and analysis tool'
14 @echo ' selftests - various kernel selftests'
15 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
16 @echo ' usb - USB testing tools'
17 @echo ' virtio - vhost test module'
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000018 @echo ' net - misc networking tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020019 @echo ' vm - misc vm tools'
20 @echo ' x86_energy_perf_policy - Intel energy policy tool'
Jacob Pan94f69962013-10-14 16:02:27 -070021 @echo ' tmon - thermal monitoring and tuning tool'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020022 @echo ''
Borislav Petkovea01fa92012-04-11 18:36:18 +020023 @echo 'You can do:'
Borislav Petkov7e010562013-01-29 11:48:11 +010024 @echo ' $$ make -C tools/ <tool>_install'
Borislav Petkovea01fa92012-04-11 18:36:18 +020025 @echo ''
26 @echo ' from the kernel command line to build and install one of'
27 @echo ' the tools above'
28 @echo ''
29 @echo ' $$ make tools/install'
30 @echo ''
31 @echo ' installs all tools.'
32 @echo ''
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020033 @echo 'Cleaning targets:'
34 @echo ''
35 @echo ' all of the above with the "_clean" string appended cleans'
36 @echo ' the respective build directory.'
37 @echo ' clean: a summary clean target to clean _all_ folders'
38
Lv Zhenga0c4acc2014-01-15 12:04:17 +080039acpi: FORCE
40 $(call descend,power/$@)
41
Borislav Petkov2363ecb2012-04-11 18:36:16 +020042cpupower: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000043 $(call descend,power/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020044
Roberta Dobrescu53375102015-03-28 21:43:08 +020045cgroup firewire hv guest usb virtio vm net iio: FORCE
Borislav Petkov85c66be2013-02-20 16:32:30 +010046 $(call descend,$@)
47
S. Lockwood-Childs0041898e2014-05-08 13:34:01 -040048liblockdep: FORCE
49 $(call descend,lib/lockdep)
50
Borislav Petkov553873e2013-12-09 17:14:23 +010051libapikfs: FORCE
52 $(call descend,lib/api)
Borislav Petkov85c66be2013-02-20 16:32:30 +010053
Borislav Petkov553873e2013-12-09 17:14:23 +010054perf: libapikfs FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000055 $(call descend,$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020056
57selftests: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000058 $(call descend,testing/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020059
60turbostat x86_energy_perf_policy: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000061 $(call descend,power/x86/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020062
Jacob Pan94f69962013-10-14 16:02:27 -070063tmon: FORCE
64 $(call descend,thermal/$@)
65
Lv Zhenga0c4acc2014-01-15 12:04:17 +080066acpi_install:
67 $(call descend,power/$(@:_install=),install)
68
Borislav Petkov2363ecb2012-04-11 18:36:16 +020069cpupower_install:
David Howellsca9dfc62012-11-05 15:15:24 +000070 $(call descend,power/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020071
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000072cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
David Howellsca9dfc62012-11-05 15:15:24 +000073 $(call descend,$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020074
75selftests_install:
David Howellsca9dfc62012-11-05 15:15:24 +000076 $(call descend,testing/$(@:_clean=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020077
78turbostat_install x86_energy_perf_policy_install:
David Howellsca9dfc62012-11-05 15:15:24 +000079 $(call descend,power/x86/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020080
Jacob Pan94f69962013-10-14 16:02:27 -070081tmon_install:
82 $(call descend,thermal/$(@:_install=),install)
83
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000084install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
Greg Thelen92e015b12013-01-04 13:05:17 -080085 perf_install selftests_install turbostat_install usb_install \
Jacob Pan94f69962013-10-14 16:02:27 -070086 virtio_install vm_install net_install x86_energy_perf_policy_install \
87 tmon
Borislav Petkov2363ecb2012-04-11 18:36:16 +020088
Lv Zhenga0c4acc2014-01-15 12:04:17 +080089acpi_clean:
90 $(call descend,power/acpi,clean)
91
Borislav Petkov2363ecb2012-04-11 18:36:16 +020092cpupower_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000093 $(call descend,power/cpupower,clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020094
Roberta Dobrescu53375102015-03-28 21:43:08 +020095cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean iio_clean:
Borislav Petkov85c66be2013-02-20 16:32:30 +010096 $(call descend,$(@:_clean=),clean)
97
S. Lockwood-Childs0041898e2014-05-08 13:34:01 -040098liblockdep_clean:
99 $(call descend,lib/lockdep,clean)
100
Borislav Petkov553873e2013-12-09 17:14:23 +0100101libapikfs_clean:
102 $(call descend,lib/api,clean)
Borislav Petkov85c66be2013-02-20 16:32:30 +0100103
Borislav Petkov553873e2013-12-09 17:14:23 +0100104perf_clean: libapikfs_clean
David Howellsca9dfc62012-11-05 15:15:24 +0000105 $(call descend,$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200106
107selftests_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000108 $(call descend,testing/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200109
110turbostat_clean x86_energy_perf_policy_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000111 $(call descend,power/x86/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200112
Jacob Pan94f69962013-10-14 16:02:27 -0700113tmon_clean:
114 $(call descend,thermal/tmon,clean)
115
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +0000116clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
Lv Zhenga0c4acc2014-01-15 12:04:17 +0800117 perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
Roberta Dobrescu53375102015-03-28 21:43:08 +0200118 vm_clean net_clean iio_clean x86_energy_perf_policy_clean tmon_clean
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200119
120.PHONY: FORCE