Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. include scripts/Makefile.include
  2. help:
  3. @echo 'Possible targets:'
  4. @echo ''
  5. @echo ' cgroup - cgroup tools'
  6. @echo ' cpupower - a tool for all things x86 CPU power'
  7. @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
  8. @echo ' lguest - a minimal 32-bit x86 hypervisor'
  9. @echo ' perf - Linux performance measurement and analysis tool'
  10. @echo ' selftests - various kernel selftests'
  11. @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
  12. @echo ' usb - USB testing tools'
  13. @echo ' virtio - vhost test module'
  14. @echo ' net - misc networking tools'
  15. @echo ' vm - misc vm tools'
  16. @echo ' x86_energy_perf_policy - Intel energy policy tool'
  17. @echo ' tmon - thermal monitoring and tuning tool'
  18. @echo ''
  19. @echo 'You can do:'
  20. @echo ' $$ make -C tools/ <tool>_install'
  21. @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 ''
  29. @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. cpupower: FORCE
  35. $(call descend,power/$@)
  36. cgroup firewire guest usb virtio vm net: FORCE
  37. $(call descend,$@)
  38. liblk: FORCE
  39. $(call descend,lib/lk)
  40. perf: liblk FORCE
  41. $(call descend,$@)
  42. selftests: FORCE
  43. $(call descend,testing/$@)
  44. turbostat x86_energy_perf_policy: FORCE
  45. $(call descend,power/x86/$@)
  46. tmon: FORCE
  47. $(call descend,thermal/$@)
  48. cpupower_install:
  49. $(call descend,power/$(@:_install=),install)
  50. cgroup_install firewire_install lguest_install perf_install usb_install virtio_install vm_install net_install:
  51. $(call descend,$(@:_install=),install)
  52. selftests_install:
  53. $(call descend,testing/$(@:_clean=),install)
  54. turbostat_install x86_energy_perf_policy_install:
  55. $(call descend,power/x86/$(@:_install=),install)
  56. tmon_install:
  57. $(call descend,thermal/$(@:_install=),install)
  58. install: cgroup_install cpupower_install firewire_install lguest_install \
  59. perf_install selftests_install turbostat_install usb_install \
  60. virtio_install vm_install net_install x86_energy_perf_policy_install \
  61. tmon
  62. cpupower_clean:
  63. $(call descend,power/cpupower,clean)
  64. cgroup_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
  65. $(call descend,$(@:_clean=),clean)
  66. liblk_clean:
  67. $(call descend,lib/lk,clean)
  68. perf_clean: liblk_clean
  69. $(call descend,$(@:_clean=),clean)
  70. selftests_clean:
  71. $(call descend,testing/$(@:_clean=),clean)
  72. turbostat_clean x86_energy_perf_policy_clean:
  73. $(call descend,power/x86/$(@:_clean=),clean)
  74. tmon_clean:
  75. $(call descend,thermal/tmon,clean)
  76. clean: cgroup_clean cpupower_clean firewire_clean lguest_clean perf_clean \
  77. selftests_clean turbostat_clean usb_clean virtio_clean \
  78. vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
  79. .PHONY: FORCE