Lines Matching +full:- +full:- +full:modules
1 # SPDX-License-Identifier: Apache-2.0
12 # It does so by loading the Zephyr CMake modules specified with the 'MODULES'
17 # '-S <path-to-sample>'
20 # controlled with: '-B <path-to-build>'
23 # $ cmake -DBOARD=<board> -B build -S samples/hello_world
26 # $ cmake -DBOARD=<board> -B build -S samples/hello_world \
27 # -DMODULES=dts -P <ZEPHYR_BASE>/cmake/package_helper.cmake
32 # $ cmake -DBOARD=<board> -B build -S samples/hello_world -DEXTRA_CONF_FILE=foo.conf
35 # $ cmake -DBOARD=<board> -B build -S samples/hello_world -DEXTRA_CONF_FILE=foo.conf \
36 # -DMODULES=dts -P <ZEPHYR_BASE>/cmake/package_helper.cmake
43 # the 'foo.conf' must be specified using '-DEXTRA_CONF_FILE=foo.conf'
47 # Find last `-B` and `-S` instances.
49 if(CMAKE_ARGV${i} MATCHES "^-B(.*)")
53 elseif(CMAKE_ARGV${i} MATCHES "^-S(.*)")
63 # value of -B follows in next index
73 # value of -S follows in next index
81 "Source directory not defined, please use '-S <path-to-source>' to the "
83 "For example: -S ${ZEPHYR_BASE}/samples/hello_world"
93 if(NOT DEFINED MODULES)
95 "No MODULES defined, please invoke package helper with minimum one module"
100 string(REPLACE ";" "," MODULES "${MODULES}")
101 find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} COMPONENTS zephyr_default:${MODULES})