[PATCH 2/2] doc: Update board_best_practices.rst to talk about dts files

Tom Rini trini at konsulko.com
Fri Nov 17 23:52:14 CET 2023


We do need to list device tree overlay files in a Makefile, to ensure
they are built. However, everything else should be handled via one of
the CONFIG options.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 doc/develop/board_best_practices.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/develop/board_best_practices.rst b/doc/develop/board_best_practices.rst
index f44401eab7d4..a5930be10f78 100644
--- a/doc/develop/board_best_practices.rst
+++ b/doc/develop/board_best_practices.rst
@@ -24,3 +24,7 @@ which are specific to creating a new board port.
 
   Kconfig fragments should reside in the board directory itself rather than in
   the top-level `configs/` directory.
+
+* A board may list device tree overlay files in `arch/$(ARCH)/dts/Makfile` but
+  all device trees themselves should be listed in `CONFIG_DEFAULT_DEVICE_TREE`
+  or `CONFIG_OF_LIST`.
-- 
2.34.1



More information about the U-Boot mailing list