doc: Process zephyr modules to parse all of Kconfig
In order to parse all the Kconfig files that make up the whole Kconfig tree we need to process the modules, since this can optionally provide Kconfig files. In order to do so, include the modules CMake file so that they are listed and a Kconfig.modules is generated. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
bd7569f272
commit
1aa4d8d09c
|
@ -1,12 +1,24 @@
|
|||
cmake_minimum_required(VERSION 3.13.1)
|
||||
project(Zephyr-Kernel-Doc LANGUAGES)
|
||||
|
||||
# Find west to (optionally) process modules for Kconfig
|
||||
find_program(
|
||||
WEST
|
||||
west
|
||||
)
|
||||
if(${WEST} STREQUAL WEST-NOTFOUND)
|
||||
unset(WEST)
|
||||
endif()
|
||||
|
||||
set(ZEPHYR_BASE $ENV{ZEPHYR_BASE})
|
||||
|
||||
message(STATUS "Zephyr base: ${ZEPHYR_BASE}")
|
||||
|
||||
include(${ZEPHYR_BASE}/cmake/version.cmake)
|
||||
|
||||
# Process modules
|
||||
include(${ZEPHYR_BASE}/cmake/zephyr_module.cmake)
|
||||
|
||||
find_package(PythonInterp 3.4)
|
||||
set(DOXYGEN_SKIP_DOT True)
|
||||
find_package(Doxygen REQUIRED)
|
||||
|
@ -74,7 +86,6 @@ set(DOC_WARN ${CMAKE_CURRENT_BINARY_DIR}/doc.warnings)
|
|||
set(CONTENT_OUTPUTS ${CMAKE_CURRENT_BINARY_DIR}/extracted-content.txt)
|
||||
|
||||
configure_file(${DOXYFILE_IN} ${DOXYFILE_OUT} @ONLY)
|
||||
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/Kconfig.modules)
|
||||
|
||||
# This command is used to copy all documentation source files from the
|
||||
# ZEPHYR_BASE/ environment variable into the build directory,
|
||||
|
|
Loading…
Reference in a new issue