make-tips.txt 2.2 KB

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