diff --git a/doc/develop/modules.rst b/doc/develop/modules.rst index 1a3107111a8522..35fb8acaf2fbeb 100644 --- a/doc/develop/modules.rst +++ b/doc/develop/modules.rst @@ -621,6 +621,14 @@ Zephyr modules In both Kconfig and CMake, the variable ``ZEPHYR__MODULE_DIR`` contains the absolute path to the module. +Additionally, ``ZEPHYR__MODULE`` and ``ZEPHYR__MODULE_BLOBS`` +(in case the module declares blobs) symbols are automatically generated for available +modules. These can be used e.g. to declare dependencies from other Kconfig symbols +which depend on the module or blobs from the module. To satisfy compliance checking +when building Zephyr without the module present, it's recommended for the module to +have default definitions for these symbols in its respective Kconfig file under +``modules/`` in the Zephyr main tree. + In CMake, ``ZEPHYR__CMAKE_DIR`` contains the absolute path to the directory containing the :file:`CMakeLists.txt` file that is included into CMake build system. This variable's value is empty if the