[PATCH 03/22] env: Explain how to use #include files in text environment

Simon Glass sjg at chromium.org
Mon Jul 31 05:01:46 CEST 2023


Provide documentation on how to share common settings among boards.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 doc/usage/environment.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst
index 91dc07b17bce..c6439dde6689 100644
--- a/doc/usage/environment.rst
+++ b/doc/usage/environment.rst
@@ -81,6 +81,12 @@ Example::
         echo CONFIG_SYS_BOARD boot failed - please check your image
         echo Load address is CONFIG_SYS_LOAD_ADDR
 
+Settings which are common to a group of boards can use #include to bring in
+a common file in the `include/env` directory, containing environment
+settings. For example::
+
+   #include <env/ti/mmc.env>
+
 If CONFIG_ENV_SOURCE_FILE is empty and the default filename is not present, then
 the old-style C environment is used instead. See below.
 
-- 
2.41.0.487.g6d72f3e995-goog



More information about the U-Boot mailing list