doc: develop: modules: Add entry for ZEPHYR_CURRENT_MODULE_NAME

A new cmake variable is added for zephyr modules, namely
`${ZEPHYR_CURRENT_MODULE_NAME}`. Add it to the documentation.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-01-17 11:09:50 +01:00 committed by Carles Cufí
parent b0150d3ac3
commit 71d8213ef9

View file

@ -611,9 +611,10 @@ For example, to include the file :file:`some/Kconfig` in module ``foo``:
source "$(ZEPHYR_FOO_MODULE_DIR)/some/Kconfig"
During CMake processing of each Zephyr module, the following two variables are
During CMake processing of each Zephyr module, the following variables are
also available:
- the current module's name: ``${ZEPHYR_CURRENT_MODULE_NAME}``
- the current module's top level directory: ``${ZEPHYR_CURRENT_MODULE_DIR}``
- the current module's :file:`CMakeLists.txt` directory: ``${ZEPHYR_CURRENT_CMAKE_DIR}``