diff --git a/doc/build/dts/howtos.rst b/doc/build/dts/howtos.rst index cb556bb782d..c6ee5a80d30 100644 --- a/doc/build/dts/howtos.rst +++ b/doc/build/dts/howtos.rst @@ -237,11 +237,10 @@ If you don't set :makevar:`DTC_OVERLAY_FILE`, the build system will follow these steps, looking for files in your application configuration directory to use as devicetree overlays: -#. If the file :file:`boards/.overlay` exists, it will be used. +#. If the file :file:`socs/_.overlay` exists, it will be used. +#. If the file :file:`boards/.overlay` exists, it will be used in addition to the above. #. If the current board has :ref:`multiple revisions ` - and :file:`boards/_.overlay` exists, it will be used. - This file will be used in addition to :file:`boards/.overlay` - if both exist. + and :file:`boards/_.overlay` exists, it will be used in addition to the above. #. If one or more files have been found in the previous steps, the build system stops looking and just uses those files. #. Otherwise, if :file:`.overlay` exists, it will be used, and the build diff --git a/doc/build/kconfig/setting.rst b/doc/build/kconfig/setting.rst index 71ddb1d49f3..b938e233f97 100644 --- a/doc/build/kconfig/setting.rst +++ b/doc/build/kconfig/setting.rst @@ -153,7 +153,8 @@ used. form :file:`prj_.conf` and if file :file:`boards/_.conf` exists in same folder as file :file:`prj_.conf`, the result of merging :file:`prj_.conf` and - :file:`boards/_.conf` is used. + :file:`boards/_.conf` is used - note that this feature is + deprecated, :ref:`application-file-suffixes` should be used instead. #. Otherwise, if :file:`boards/.conf` exists in the application configuration directory, the result of merging it with :file:`prj.conf` is @@ -167,6 +168,11 @@ used. #. Otherwise, :file:`prj.conf` is used from the application configuration directory. If it does not exist then a fatal error will be emitted. +Furthermore, applications can have SoC overlay configuration that is applied to +it, the file :file:`socs/_.conf` will be applied if it exists, +after the main project configuration has been applied and before any board overlay +configuration files have been applied. + All configuration files will be taken from the application's configuration directory except for files with an absolute path that are given with the ``CONF_FILE``, ``EXTRA_CONF_FILE``, ``DTC_OVERLAY_FILE``, and