1 .. SPDX-License-Identifier: GPL-2.0+:
3 Best Practices for Board Ports
4 ==============================
6 In addition to the regular best practices such as using :doc:`checkpatch` and
7 following the :doc:`docstyle` and the :doc:`codingstyle` there are some things
8 which are specific to creating a new board port.
10 * Implement :doc:`bootstd/index` to ensure that most operating systems will be
11 supported by the platform.
13 * The platform defconfig file must be generated via `make savedefconfig`.
15 * The Kconfig and Kbuild infrastructure supports using "fragments" that can be
16 used to apply changes on top of a defconfig file. These can be useful for
19 * Supporting different firmware locations (e.g. eMMC, SD, QSPI).
21 * Multiple board variants when runtime detection is not desired.
23 * Supporting different build types such as production and development.
25 Kconfig fragments should reside in the board directory itself rather than in
26 the top-level `configs/` directory.