117008331d
The Zephyr CMake package helper script allows to invoke Zephyr package modules as they are invoked at configure time, up to the modules given with `-DMODULES=<modules>`. This allows to run the configure time part of the Zephyr build system without generating a complete build system. This means that for example devicetree module can be invoked for a given sample and board to generate zephyr.dts identical to what is created by the build system during a build. To generate zephyr.dts for hello_world, invoke the script as: $ cmake -DBOARD=<board> -B build -S samples/hello_world \ $ -DMODULES=dts -P <ZEPHYR_BASE>/cmake/package_helper.cmake Other modules, for example 'kconfig' and 'zephyr_modules' can also be invoked this way. This will allow other tools, such as twister, to executed only a subset of the build system like dts in order to do filtering before determine if a complete build should be invoked. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no> |
||
---|---|---|
.. | ||
app | ||
bintools | ||
compiler | ||
emu | ||
flash | ||
ide | ||
linker | ||
linker_script | ||
makefile_exports | ||
modules | ||
reports | ||
toolchain | ||
usage | ||
util | ||
cfb.cmake | ||
extra_flags.cmake | ||
gcc-m-cpu.cmake | ||
gen_version_h.cmake | ||
hex.cmake | ||
kobj.cmake | ||
mcuboot.cmake | ||
package_helper.cmake | ||
pristine.cmake | ||
target_toolchain_flags.cmake |