make-tips.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. .Display all commands executed by make:
  7. --------------------
  8. $ make V=1 <target>
  9. --------------------
  10. .Display the list of boards with a defconfig:
  11. --------------------
  12. $ make list-defconfigs
  13. --------------------
  14. .Display all available targets:
  15. --------------------
  16. $ make help
  17. --------------------
  18. Not all targets are always available,
  19. some settings in the +.config+ file may hide some targets:
  20. * +busybox-menuconfig+ only works when +busybox+ is enabled;
  21. * +linux-menuconfig+ and +linux-savedefconfig+ only work when
  22. +linux+ is enabled;
  23. * +uclibc-menuconfig+ is only available when the uClibc C library is
  24. selected in the internal toolchain backend;
  25. * +barebox-menuconfig+ and +barebox-savedefconfig+ only work when the
  26. +barebox+ bootloader is enabled.
  27. .Cleaning:
  28. Explicit cleaning is required when any of the architecture or toolchain
  29. configuration options are changed.
  30. To delete all build products (including build directories, host, staging
  31. and target trees, the images and the toolchain):
  32. --------------------
  33. $ make clean
  34. --------------------
  35. .Generating the manual:
  36. The present manual sources are located in the 'docs/manual' directory.
  37. To generate the manual:
  38. ---------------------------------
  39. $ make manual-clean
  40. $ make manual
  41. ---------------------------------
  42. The manual outputs will be generated in 'output/docs/manual'.
  43. .Notes
  44. - A few tools are required to build the documentation (see:
  45. xref:requirement-optional[]).
  46. .Resetting Buildroot for a new target:
  47. To delete all build products as well as the configuration:
  48. --------------------
  49. $ make distclean
  50. --------------------
  51. .Notes
  52. If +ccache+ is enabled, running +make clean+ or +distclean+ does
  53. not empty the compiler cache used by Buildroot. To delete it, refer
  54. to xref:ccache[].