make-tips.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[make-tips]]
  4. == 'make' tips
  5. This is a collection of tips that help you make the most of Buildroot.
  6. .Configuration searches:
  7. The +make *config+ commands offer a search tool. Read the help message in
  8. the different frontend menus to know how to use it:
  9. * in _menuconfig_, the search tool is called by pressing +/+;
  10. * in _xconfig_, the search tool is called by pressing +Ctrl+ + +f+.
  11. The result of the search shows the help message of the matching items.
  12. .Display all commands executed by make:
  13. --------------------
  14. $ make V=1 <target>
  15. --------------------
  16. .Display all available targets:
  17. --------------------
  18. $ make help
  19. --------------------
  20. Not all targets are always available,
  21. some settings in the +.config+ file may hide some targets:
  22. * +busybox-menuconfig+ and +busybox-savedefconfig+ only work when
  23. +busybox+ is enabled;
  24. * +linux-menuconfig+ and +linux-savedefconfig+ only work when
  25. +linux+ is enabled;
  26. * +uclibc-menuconfig+ is only available when the uClibc C library is
  27. selected in the internal toolchain backend;
  28. * +barebox-menuconfig+ and +barebox-savedefconfig+ only work when the
  29. +barebox+ bootloader is enabled.
  30. .Cleaning:
  31. Explicit cleaning is required when any of the architecture or toolchain
  32. configuration options are changed.
  33. To delete all build products (including build directories, host, staging
  34. and target trees, the images and the toolchain):
  35. --------------------
  36. $ make clean
  37. --------------------
  38. .Generating the manual:
  39. The present manual sources are located in the 'docs/manual' directory.
  40. To generate the manual:
  41. ---------------------------------
  42. $ make manual-clean
  43. $ make manual
  44. ---------------------------------
  45. The manual outputs will be generated in 'output/docs/manual'.
  46. .Notes
  47. - A few tools are required to build the documentation (see:
  48. xref:requirement-optional[]).
  49. .Reseting Buildroot for a new target:
  50. To delete all build products as well as the configuration:
  51. --------------------
  52. $ make distclean
  53. --------------------
  54. .Notes
  55. If +ccache+ is enabled, running +make clean+ or +distclean+ does
  56. not empty the compiler cache used by Buildroot. To delete it, refer
  57. to xref:ccache[].