board-support.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // -*- mode:doc -*- ;
  2. [[board-support]]
  3. Creating your own board support
  4. -------------------------------
  5. Creating your own board support in Buildroot allows users of a
  6. particular hardware platform to easily build a system that is known to
  7. work.
  8. To do so, you need to create a normal Buildroot configuration that
  9. builds a basic system for the hardware: toolchain, kernel, bootloader,
  10. filesystem and a simple Busybox-only userspace. No specific package
  11. should be selected: the configuration should be as minimal as
  12. possible, and should only build a working basic Busybox system for the
  13. target platform. You can of course use more complicated configurations
  14. for your internal projects, but the Buildroot project will only
  15. integrate basic board configurations. This is because package
  16. selections are highly application-specific.
  17. Once you have a known working configuration, run +make
  18. savedefconfig+. This will generate a minimal +defconfig+ file at the
  19. root of the Buildroot source tree. Move this file into the +configs/+
  20. directory, and rename it +MYBOARD_defconfig+.
  21. It is recommended to use as much as possible upstream versions of the
  22. Linux kernel and bootloaders, and to use as much as possible default
  23. kernel and bootloader configurations. If they are incorrect for your
  24. platform, we encourage you to send fixes to the corresponding upstream
  25. projects.
  26. However, in the mean time, you may want to store kernel or bootloader
  27. configuration or patches specific to your target platform. To do so,
  28. create a directory +board/MANUFACTURER+ and a subdirectory
  29. +board/MANUFACTURER/BOARDNAME+ (after replacing, of course,
  30. MANUFACTURER and BOARDNAME with the appropriate values, in lower case
  31. letters). You can then store your patches and configurations in these
  32. directories, and reference them from the main Buildroot configuration.