You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/explanations/config_rules.rst
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,11 @@ To define a Config Rule, use the following format: ``[SDKCONFIG_FILEPATTERN]=[CO
52
52
- ``SDKCONFIG_FILEPATTERN``: This can be a file name to match a `sdkconfig file <#sdkconfig-files>`_ or a pattern with one wildcard (``*``) character to match multiple `sdkconfig files`_.
53
53
- ``CONFIG_NAME``: The name of the corresponding build configuration. This value can be skipped if the wildcard value is to be used.
54
54
55
+
To exclude specific `sdkconfig files`_, use the negation rule format: ``![SDKCONFIG_FILEPATTERN]``.
56
+
57
+
- ``SDKCONFIG_FILEPATTERN``: The format is the same as in the normal Config Rule.
58
+
- Negation rules are applied after all inclusion rules, so the order of negation rules does not matter.
59
+
55
60
The config rules and the corresponding matched `sdkconfig files`_ for the example project are as follows:
56
61
57
62
.. list-table:: Config Rules
@@ -85,6 +90,30 @@ The config rules and the corresponding matched `sdkconfig files`_ for the exampl
85
90
- - ``sdkconfig.ci.foo``
86
91
- ``sdkconfig.ci.bar``
87
92
93
+
- - - ``sdkconfig.ci.*=``
94
+
- ``!sdkconfig.ci.test``
95
+
- - ``foo``
96
+
- ``bar``
97
+
- The negation rule excludes the ``sdkconfig.ci.test`` file.
98
+
- - ``sdkconfig.ci.foo``
99
+
- ``sdkconfig.ci.bar``
100
+
101
+
- - - ``sdkconfig.ci.*=``
102
+
- ``!sdkconfig.ci.test*``
103
+
- - ``foo``
104
+
- ``bar``
105
+
- The negation rule excludes the files matching the negation wildcard pattern like ``sdkconfig.ci.test`` or ``sdkconfig.ci.test_debug``.
106
+
- - ``sdkconfig.ci.foo``
107
+
- ``sdkconfig.ci.bar``
108
+
109
+
- - - ``!sdkconfig.ci.test*``
110
+
- ``sdkconfig.ci.*=``
111
+
- - ``foo``
112
+
- ``bar``
113
+
- Same as the previous example, but the negation rule is applied first.
`TOML <https://toml.io/en/>`__ supports native data types. In order to get the config name and type of the corresponding CLI option, you may refer to the help messages by using ``idf-build-apps find -h`` or ``idf-build-apps build -h``.
0 commit comments