2
1

customize.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. == Project-specific customization
  4. Typical actions you may need to perform for a given project are:
  5. - configuring Buildroot (including build options and toolchain,
  6. bootloader, kernel, package and filesystem image type selection)
  7. - configuring other components, like the Linux kernel and BusyBox
  8. - adding project-specific patches to some packages (using
  9. +BR2_GLOBAL_PATCH_DIR+)
  10. - adding or overwriting files on the target filesystem (using
  11. +BR2_ROOTFS_OVERLAY+)
  12. - modifying or deleting files on the target filesystem (using
  13. +BR2_ROOTFS_POST_BUILD_SCRIPT+)
  14. - running arbitrary commands prior to generating the filesystem image
  15. (using +BR2_ROOTFS_POST_BUILD_SCRIPT+)
  16. - running arbitrary commands after generating the filesystem image
  17. (using +BR2_ROOTFS_POST_IMAGE_SCRIPT+)
  18. - adding project-specific packages
  19. An important note regarding such 'project-specific' customizations:
  20. please carefully consider which changes are indeed project-specific and
  21. which changes are also useful to developers outside your project. The
  22. Buildroot community highly recommends and encourages the upstreaming of
  23. improvements, packages and board support to the official Buildroot
  24. project. Of course, it is sometimes not possible or desirable to
  25. upstream because the changes are highly specific or proprietary.
  26. This chapter describes how to make such project-specific customizations
  27. in Buildroot and how to store them in a way that you can build the same
  28. image in a reproducible way, even after running 'make clean'. By
  29. following the recommended strategy, you can even use the same Buildroot
  30. tree to build multiple distinct projects!
  31. include::customize-directory-structure.txt[]
  32. include::customize-outside-br.txt[]
  33. include::customize-rootfs.txt[]
  34. include::customize-post-image.txt[]
  35. include::customize-store.txt[]
  36. include::customize-packages.txt[]