Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. include scripts/Makefile.include
  2. help:
  3. @echo 'Possible targets:'
  4. @echo ''
  5. @echo ' cpupower - a tool for all things x86 CPU power'
  6. @echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
  7. @echo ' lguest - a minimal 32-bit x86 hypervisor'
  8. @echo ' perf - Linux performance measurement and analysis tool'
  9. @echo ' selftests - various kernel selftests'
  10. @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
  11. @echo ' usb - USB testing tools'
  12. @echo ' virtio - vhost test module'
  13. @echo ' vm - misc vm tools'
  14. @echo ' x86_energy_perf_policy - Intel energy policy tool'
  15. @echo ''
  16. @echo 'You can do:'
  17. @echo ' $$ make -C tools/<tool>_install'
  18. @echo ''
  19. @echo ' from the kernel command line to build and install one of'
  20. @echo ' the tools above'
  21. @echo ''
  22. @echo ' $$ make tools/install'
  23. @echo ''
  24. @echo ' installs all tools.'
  25. @echo ''
  26. @echo 'Cleaning targets:'
  27. @echo ''
  28. @echo ' all of the above with the "_clean" string appended cleans'
  29. @echo ' the respective build directory.'
  30. @echo ' clean: a summary clean target to clean _all_ folders'
  31. cpupower: FORCE
  32. $(call descend,power/$@)
  33. firewire lguest perf usb virtio vm: FORCE
  34. $(call descend,$@)
  35. selftests: FORCE
  36. $(call descend,testing/$@)
  37. turbostat x86_energy_perf_policy: FORCE
  38. $(call descend,power/x86/$@)
  39. cpupower_install:
  40. $(call descend,power/$(@:_install=),install)
  41. firewire_install lguest_install perf_install usb_install virtio_install vm_install:
  42. $(call descend,$(@:_install=),install)
  43. selftests_install:
  44. $(call descend,testing/$(@:_clean=),install)
  45. turbostat_install x86_energy_perf_policy_install:
  46. $(call descend,power/x86/$(@:_install=),install)
  47. install: cpupower_install firewire_install lguest_install perf_install \
  48. selftests_install turbostat_install usb_install virtio_install \
  49. vm_install x86_energy_perf_policy_install
  50. cpupower_clean:
  51. $(call descend,power/cpupower,clean)
  52. firewire_clean lguest_clean perf_clean usb_clean virtio_clean vm_clean:
  53. $(call descend,$(@:_clean=),clean)
  54. selftests_clean:
  55. $(call descend,testing/$(@:_clean=),clean)
  56. turbostat_clean x86_energy_perf_policy_clean:
  57. $(call descend,power/x86/$(@:_clean=),clean)
  58. clean: cpupower_clean firewire_clean lguest_clean perf_clean selftests_clean \
  59. turbostat_clean usb_clean virtio_clean vm_clean \
  60. x86_energy_perf_policy_clean
  61. .PHONY: FORCE