make-tips.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // -*- mode:doc -*- ;
  2. [[make-tips]]
  3. 'make' tips
  4. -----------
  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. * +linux-menuconfig+ and +linux-savedefconfig+ only work when
  23. +linux+ is enabled;
  24. * +uclibc-menuconfig+ is only available when the
  25. Buildroot internal toolchain backend is used;
  26. * +ctng-menuconfig+ is only available when the
  27. crosstool-NG backend is used;
  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. To delete all build products as well as the configuration:
  39. --------------------
  40. $ make distclean
  41. --------------------
  42. Note that if +ccache+ is enabled, running +make clean+ or +distclean+ does
  43. not empty the compiler cache used by Buildroot. To delete it, refer
  44. to xref:ccache[].