Lines Matching +full:if +full:- +full:no +full:- +full:files +full:- +full:found

1 # SPDX-License-Identifier: Apache-2.0
9 # files for Zephyr modules into Zephyr build system.
11 # CMakeLists.txt and Kconfig files can reside directly in the Zephyr module or
13 # The `<module>/zephyr/module.yml` file specifies whether the build files are
17 # -DZEPHYR_MODULES=<module-path>[;<additional-module(s)-path>]
22 # If west is installed, it uses west's APIs to obtain a list of projects to
25 # If the module.yml file specifies that build files are located in a
27 # - `ZEPHYR_<MODULE_NAME>_CMAKE_DIR` is used for inclusion of the CMakeLists.txt
28 # - `ZEPHYR_<MODULE_NAME>_KCONFIG` is used for inclusion of the Kconfig
29 # files into the build system.
35 if(ZEPHYR_MODULES)
36 set(ZEPHYR_MODULES_ARG "--modules" ${ZEPHYR_MODULES})
40 if(EXTRA_ZEPHYR_MODULES)
41 set(EXTRA_ZEPHYR_MODULES_ARG "--extra-modules" ${EXTRA_ZEPHYR_MODULES})
51 if(WEST OR ZEPHYR_MODULES)
52 # Zephyr module uses west, so only call it if west is installed or
57 --zephyr-base=${ZEPHYR_BASE}
60 --kconfig-out ${kconfig_modules_file}
61 --cmake-out ${cmake_modules_file}
62 --sysbuild-kconfig-out ${kconfig_sysbuild_file}
63 --sysbuild-cmake-out ${cmake_sysbuild_file}
64 --settings-out ${zephyr_settings_file}
72 if(${zephyr_module_return})
76 if(EXISTS ${zephyr_settings_file})
77 file(STRINGS ${zephyr_settings_file} zephyr_settings_txt ENCODING UTF-8 REGEX "^[^#]")
91 if(EXISTS ${cmake_modules_file})
92 file(STRINGS ${cmake_modules_file} zephyr_modules_txt ENCODING UTF-8)
104 if(EXISTS ${cmake_sysbuild_file})
105 file(STRINGS ${cmake_sysbuild_file} sysbuild_modules_txt ENCODING UTF-8)
122 if(NOT EXISTS ${root}/${module_cmake_file_path})
123 message(FATAL_ERROR "No `${module_cmake_file_path}` found in module root `${root}`.")
139 if(NOT ${MODULE_NAME_UPPER} STREQUAL CURRENT)
144 message(FATAL_ERROR "Found Zephyr module named: ${module_name}\n\
160 if(NOT ${MODULE_NAME_UPPER} STREQUAL CURRENT)
164 message(FATAL_ERROR "Found Zephyr module named: ${module_name}\n\
172 "# No west and no Zephyr modules\n"
176 "# No west and no Zephyr modules\n"