customize-directory-structure.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[customize-dir-structure]]
  4. === Recommended directory structure
  5. When customizing Buildroot for your project, you will be creating one or
  6. more project-specific files that need to be stored somewhere. While most
  7. of these files could be placed in _any_ location as their path is to be
  8. specified in the Buildroot configuration, the Buildroot developers
  9. recommend a specific directory structure which is described in this
  10. section.
  11. Orthogonal to this directory structure, you can choose _where_ you place
  12. this structure itself: either inside the Buildroot tree, or outside of
  13. it using +BR2_EXTERNAL+. Both options are valid, the choice is up to you.
  14. -----
  15. +-- board/
  16. | +-- <company>/
  17. | +-- <boardname>/
  18. | +-- linux.config
  19. | +-- busybox.config
  20. | +-- <other configuration files>
  21. | +-- post_build.sh
  22. | +-- post_image.sh
  23. | +-- rootfs_overlay/
  24. | | +-- etc/
  25. | | +-- <some file>
  26. | +-- patches/
  27. | +-- foo/
  28. | | +-- <some patch>
  29. | +-- libbar/
  30. | +-- <some other patches>
  31. |
  32. +-- configs/
  33. | +-- <boardname>_defconfig
  34. |
  35. +-- package/
  36. | +-- <company>/
  37. | +-- Config.in (if not using BR2_EXTERNAL)
  38. | +-- <company>.mk (if not using BR2_EXTERNAL)
  39. | +-- package1/
  40. | | +-- Config.in
  41. | | +-- package1.mk
  42. | +-- package2/
  43. | +-- Config.in
  44. | +-- package2.mk
  45. |
  46. +-- Config.in (if using BR2_EXTERNAL)
  47. +-- external.mk (if using BR2_EXTERNAL)
  48. ------
  49. Details on the files shown above are given further in this chapter.
  50. Note: if you choose to place this structure outside of the Buildroot
  51. tree using +BR2_EXTERNAL+, the <company> and possibly <boardname>
  52. components may be superfluous and can be left out.