make-tips.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // -*- mode:doc -*- ;
  2. [[make-tips]]
  3. 'make' tips
  4. -----------
  5. Because Buildroot is a set of Makefiles and patches, there are a few
  6. things that are useful to know, such as:
  7. +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_, search tool is called by pressing +/+;
  10. * in _xconfig_, 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=0|1 <target>
  15. --------------------
  16. Display all available targets:
  17. --------------------
  18. $ make help
  19. --------------------
  20. Note that some settings in the +.config+ file may hide some targets:
  21. * +busybox-menuconfig+ depends on whether +busybox+ is enabled or not
  22. in the +Package selection+ menu
  23. * +linux-menuconfig+ and +linux-savedefconfig+ depend on whether
  24. +linux+ is enabled or not
  25. * +uclibc-menuconfig+ depends on whether the toolchain uses the
  26. Buildroot internal toolchain backend or not
  27. * +ctng-menuconfig+ depends on whether the toolchain uses the
  28. crosstool-NG backend or not
  29. * +barebox-menuconfig+ and +barebox-savedefconfig+ depend on whether
  30. +barebox+ bootloader is enabled or not
  31. Delete all build products (including build directories, host, staging
  32. and target trees, the images and the toolchain):
  33. --------------------
  34. $ make clean
  35. --------------------
  36. Delete all build products as well as the configuration:
  37. --------------------
  38. $ make distclean
  39. --------------------
  40. Note that if +ccache+ is enabled, running +make clean|distclean+ does
  41. not empty the compiler cache used by Buildroot. To delete it, refer
  42. to xref:ccache[].