From 9055cfe57e9c309ab8c18764d6dedd24c5160de8 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Tue, 10 Dec 2019 16:57:48 +0100 Subject: [PATCH] doc/guides: shields: Document shield conditional configuration Update doc with new Kconfig.shield files. Signed-off-by: Erwan Gouriou --- doc/guides/porting/shields.rst | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/doc/guides/porting/shields.rst b/doc/guides/porting/shields.rst index f30ca4a4004..b24163eb72d 100644 --- a/doc/guides/porting/shields.rst +++ b/doc/guides/porting/shields.rst @@ -18,8 +18,8 @@ under :zephyr_file:`/boards/shields`: boards/shields/ ├── .overlay - ├── .conf - └── dts_fixup.h + ├── Kconfig.shield + └── Kconfig.defconfig These files provides shield configuration as follows: @@ -27,13 +27,15 @@ These files provides shield configuration as follows: format that is merged with the board's devicetree information before compilation. -* **.conf**: This file defines values for Kconfig symbols that are - required for default shield configuration. To ease use with applications, +* **Kconfig.shield**: This file defines shield Kconfig symbols that will be + used for default shield configuration. To ease use with applications, the default shield configuration here should be consistent with those in the :ref:`default_board_configuration`. -* **dts_fixup.h**: This is a fixup file to bind board components definitions with - application in a generic fashion to enable shield compatibility across boards +* **Kconfig.defconfig**: This file defines the default shield configuration. It + is made to be consistent with the :ref:`default_board_configuration`. Hence, + shield configuration should be done by keeping in mind that features + activation is application responsibility. Board compatibility ******************* @@ -77,7 +79,7 @@ files to a shield, as follows: boards/shields/ └── ├── board.overlay - └── board.conf + └── board.defconfig Shield activation @@ -108,9 +110,9 @@ possible to provide multiple version of the shields description: boards/shields/ ├── .overlay - ├── .conf + ├── .defconfig ├── .overlay - └── .conf + └── .defconfig In this case, a shield-particular revision name can be used: @@ -126,10 +128,10 @@ revision: boards/shields/ ├── .overlay - ├── .conf + ├── .defconfig ├── .overlay - ├── .conf + ├── .defconfig └── └── ├── board.overlay - └── board.conf + └── board.defconfig