File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
idf_component_manager/prepare_components Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1313
1414from idf_component_manager .core import ComponentManager
1515from idf_component_tools import error , setup_logging , warn
16+ from idf_component_tools .build_system_tools import get_idf_version
1617from idf_component_tools .debugger import KCONFIG_CONTEXT
1718from idf_component_tools .errors import FatalError
1819from idf_component_tools .manifest import ComponentRequirement
@@ -52,8 +53,18 @@ def debug_message(req: ComponentRequirement) -> str:
5253 debug_strs .add (f' { key } , { debug_message (req )} ' )
5354
5455 _nl = '\n '
56+ if args .interface_version < 4 :
57+ warn (
58+ f'The following Kconfig variables were used in "if" clauses, '
59+ f'but not supported by your ESP-IDF version { get_idf_version ()} . '
60+ f'Ignoring these if-clauses:\n '
61+ f'{ _nl .join (sorted (debug_strs ))} \n '
62+ )
63+ return
64+
5565 warn (
56- f'The following Kconfig variables were used in "if" clauses, but not found in any Kconfig file:\n '
66+ f'The following Kconfig variables were used in "if" clauses, '
67+ f'but not found in any Kconfig file:\n '
5768 f'{ _nl .join (sorted (debug_strs ))} \n '
5869 )
5970 exit (10 )
You can’t perform that action at this time.
0 commit comments