make-tips.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 OpenADK.
  7. .Configuration searches:
  8. The +make menuconfig+ command offer a search tool.
  9. The search tool is called by pressing +/+;
  10. The result of the search shows the help message of the matching items.
  11. .Display all commands executed by make:
  12. --------------------
  13. $ make v
  14. --------------------
  15. or
  16. --------------------
  17. $ make VERBOSE=1 <target>
  18. --------------------
  19. .Display all available targets:
  20. --------------------
  21. $ make help
  22. --------------------
  23. .Cleaning:
  24. There are different cleaning targets available. If a full clean is
  25. necessary, you normally will get a message from OpenADK.
  26. To delete all build products (including build directories, target, host
  27. and pkg trees, the firmware and the toolchain for all targets):
  28. --------------------
  29. $ make cleandir
  30. --------------------
  31. If you only want to clean your specific configured target, just use:
  32. --------------------
  33. $ make cleantarget
  34. --------------------
  35. If you even want to clean any downloaded source:
  36. --------------------
  37. $ make distclean
  38. --------------------
  39. If you only want to clean the kernel build, because you added or
  40. removed some patch, just do:
  41. --------------------
  42. $ make cleankernel
  43. --------------------
  44. This is automatically triggered if you change the kernel version in
  45. your configuration.
  46. If you just want to clean all packages and wants to rebuild the firmware,
  47. (the tools/toolchain is not deleted) just use:
  48. --------------------
  49. $ make clean
  50. --------------------
  51. .Resetting OpenADK for a new target:
  52. You can either delete the configuration and start from scratch:
  53. --------------------
  54. $ rm .config*
  55. $ make menuconfig
  56. --------------------
  57. Or you can save your existing configuration and switch to a new
  58. one with:
  59. --------------------
  60. $ make switch
  61. --------------------
  62. Afterwards you can switch back to your old configuration, you just
  63. need to remember, which architecture and system you had configured:
  64. --------------------
  65. $ make switch ARCH=<arch> SYSTEM=<system>
  66. --------------------
  67. OpenADK is designed to have multiple architectures and embedded system
  68. combinations configured and build without a need to rebuild everything
  69. from scratch. There is no limit, you just need to have enough disk space.