blob: bcae806b0c398d5450975ab08001e7a808e376c4 [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'
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000010 @echo ' hv - tools used when in Hyper-V clients'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020011 @echo ' lguest - a minimal 32-bit x86 hypervisor'
12 @echo ' perf - Linux performance measurement and analysis tool'
13 @echo ' selftests - various kernel selftests'
14 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
15 @echo ' usb - USB testing tools'
16 @echo ' virtio - vhost test module'
Daniel Borkmanne306e2c2013-03-20 12:11:47 +000017 @echo ' net - misc networking tools'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020018 @echo ' vm - misc vm tools'
19 @echo ' x86_energy_perf_policy - Intel energy policy tool'
Jacob Pan94f69962013-10-14 16:02:27 -070020 @echo ' tmon - thermal monitoring and tuning tool'
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020021 @echo ''
Borislav Petkovea01fa92012-04-11 18:36:18 +020022 @echo 'You can do:'
Borislav Petkov7e010562013-01-29 11:48:11 +010023 @echo ' $$ make -C tools/ <tool>_install'
Borislav Petkovea01fa92012-04-11 18:36:18 +020024 @echo ''
25 @echo ' from the kernel command line to build and install one of'
26 @echo ' the tools above'
27 @echo ''
28 @echo ' $$ make tools/install'
29 @echo ''
30 @echo ' installs all tools.'
31 @echo ''
Borislav Petkovd5dd8af2012-04-11 18:36:17 +020032 @echo 'Cleaning targets:'
33 @echo ''
34 @echo ' all of the above with the "_clean" string appended cleans'
35 @echo ' the respective build directory.'
36 @echo ' clean: a summary clean target to clean _all_ folders'
37
Lv Zhenga0c4acc2014-01-15 12:04:17 +080038acpi: FORCE
39 $(call descend,power/$@)
40
Borislav Petkov2363ecb2012-04-11 18:36:16 +020041cpupower: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000042 $(call descend,power/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020043
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000044cgroup firewire hv guest usb virtio vm net: FORCE
Borislav Petkov85c66be2013-02-20 16:32:30 +010045 $(call descend,$@)
46
Borislav Petkov553873e2013-12-09 17:14:23 +010047libapikfs: FORCE
48 $(call descend,lib/api)
Borislav Petkov85c66be2013-02-20 16:32:30 +010049
Borislav Petkov553873e2013-12-09 17:14:23 +010050perf: libapikfs FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000051 $(call descend,$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020052
53selftests: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000054 $(call descend,testing/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020055
56turbostat x86_energy_perf_policy: FORCE
David Howellsca9dfc62012-11-05 15:15:24 +000057 $(call descend,power/x86/$@)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020058
Jacob Pan94f69962013-10-14 16:02:27 -070059tmon: FORCE
60 $(call descend,thermal/$@)
61
Lv Zhenga0c4acc2014-01-15 12:04:17 +080062acpi_install:
63 $(call descend,power/$(@:_install=),install)
64
Borislav Petkov2363ecb2012-04-11 18:36:16 +020065cpupower_install:
David Howellsca9dfc62012-11-05 15:15:24 +000066 $(call descend,power/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020067
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000068cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
David Howellsca9dfc62012-11-05 15:15:24 +000069 $(call descend,$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020070
71selftests_install:
David Howellsca9dfc62012-11-05 15:15:24 +000072 $(call descend,testing/$(@:_clean=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020073
74turbostat_install x86_energy_perf_policy_install:
David Howellsca9dfc62012-11-05 15:15:24 +000075 $(call descend,power/x86/$(@:_install=),install)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020076
Jacob Pan94f69962013-10-14 16:02:27 -070077tmon_install:
78 $(call descend,thermal/$(@:_install=),install)
79
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000080install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
Greg Thelen92e015b2013-01-04 13:05:17 -080081 perf_install selftests_install turbostat_install usb_install \
Jacob Pan94f69962013-10-14 16:02:27 -070082 virtio_install vm_install net_install x86_energy_perf_policy_install \
83 tmon
Borislav Petkov2363ecb2012-04-11 18:36:16 +020084
Lv Zhenga0c4acc2014-01-15 12:04:17 +080085acpi_clean:
86 $(call descend,power/acpi,clean)
87
Borislav Petkov2363ecb2012-04-11 18:36:16 +020088cpupower_clean:
David Howellsca9dfc62012-11-05 15:15:24 +000089 $(call descend,power/cpupower,clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020090
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +000091cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
Borislav Petkov85c66be2013-02-20 16:32:30 +010092 $(call descend,$(@:_clean=),clean)
93
Borislav Petkov553873e2013-12-09 17:14:23 +010094libapikfs_clean:
95 $(call descend,lib/api,clean)
Borislav Petkov85c66be2013-02-20 16:32:30 +010096
Borislav Petkov553873e2013-12-09 17:14:23 +010097perf_clean: libapikfs_clean
David Howellsca9dfc62012-11-05 15:15:24 +000098 $(call descend,$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +020099
100selftests_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000101 $(call descend,testing/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200102
103turbostat_clean x86_energy_perf_policy_clean:
David Howellsca9dfc62012-11-05 15:15:24 +0000104 $(call descend,power/x86/$(@:_clean=),clean)
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200105
Jacob Pan94f69962013-10-14 16:02:27 -0700106tmon_clean:
107 $(call descend,thermal/tmon,clean)
108
Bjarke Istrup Pedersen3eb20942014-02-09 11:41:52 +0000109clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
Lv Zhenga0c4acc2014-01-15 12:04:17 +0800110 perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
Jacob Pan94f69962013-10-14 16:02:27 -0700111 vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
Borislav Petkov2363ecb2012-04-11 18:36:16 +0200112
113.PHONY: FORCE