Lines Matching +full:key +full:- +full:list +full:- +full:string

1 # SPDX-License-Identifier: Apache-2.0
16 # A list of Zephyr modules can be provided to the build system using:
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
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
36 set(ZEPHYR_MODULES_ARG "--modules" ${ZEPHYR_MODULES})
41 set(EXTRA_ZEPHYR_MODULES_ARG "--extra-modules" ${EXTRA_ZEPHYR_MODULES})
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}
77 file(STRINGS ${zephyr_settings_file} zephyr_settings_txt ENCODING UTF-8 REGEX "^[^#]")
79 # Match <key>:<value> for each line of file, each corresponding to
82 string(REGEX REPLACE "\"(.*)\":\".*\"" "\\1" key ${setting})
83 string(REGEX REPLACE "\".*\":\"(.*)\"" "\\1" value ${setting})
84 list(APPEND ${key} ${value})
89 list(APPEND MODULE_EXT_ROOT ${ZEPHYR_BASE})
92 file(STRINGS ${cmake_modules_file} zephyr_modules_txt ENCODING UTF-8)
100 string(REGEX REPLACE "\"(.*)\":\".*\":\".*\"" "\\1" module_name ${module})
101 list(APPEND ZEPHYR_MODULE_NAMES ${module_name})
105 file(STRINGS ${cmake_sysbuild_file} sysbuild_modules_txt ENCODING UTF-8)
113 string(REGEX REPLACE "\"(.*)\":\".*\":\".*\"" "\\1" module_name ${module})
114 list(APPEND SYSBUILD_MODULE_NAMES ${module_name})
118 # later wins. therefore we reverse the list before processing.
119 list(REVERSE MODULE_EXT_ROOT)
133 string(CONFIGURE ${module} module)
134 string(REGEX REPLACE "\"(.*)\":\".*\":\".*\"" "\\1" module_name ${module})
135 string(REGEX REPLACE "\".*\":\"(.*)\":\".*\"" "\\1" module_path ${module})
136 string(REGEX REPLACE "\".*\":\".*\":\"(.*)\"" "\\1" cmake_path ${module})
154 string(CONFIGURE ${module} module)
155 string(REGEX REPLACE "\"(.*)\":\".*\":\".*\"" "\\1" module_name ${module})
156 string(REGEX REPLACE "\".*\":\"(.*)\":\".*\"" "\\1" module_path ${module})
157 string(REGEX REPLACE "\".*\":\".*\":\"(.*)\"" "\\1" cmake_path ${module})