Home
last modified time | relevance | path

Searched full:cmake (Results 1 – 25 of 1031) sorted by relevance

12345678910>>...42

/Zephyr-latest/doc/build/
Dzephyr_cmake_package.rst3 Zephyr CMake Package
6 The Zephyr `CMake package`_ is a convenient way to create a Zephyr-based application.
12 The Zephyr CMake package ensures that CMake can automatically select a Zephyr installation to use f…
20 To use the Zephyr CMake package it must first be exported to the `CMake user package registry`_.
22 CMake user package registry.
29 In Linux, the CMake user package registry is found in:
31 ``~/.cmake/packages/Zephyr``
35 In macOS, the CMake user package registry is found in:
37 ``~/.cmake/packages/Zephyr``
41 In Windows, the CMake user package registry is found in:
[all …]
/Zephyr-latest/doc/develop/toolchains/
Dcustom_cmake.rst3 Custom CMake Toolchains
6 To use a custom toolchain defined in an external CMake file, :ref:`set these
11 toolchain's CMake configuration files.
13 Zephyr will then include the toolchain cmake files located in the
16 - :file:`cmake/toolchain/<toolchain name>/generic.cmake`: configures the
20 - :file:`cmake/toolchain/<toolchain name>/target.cmake`: configures the
26 See the zephyr files :zephyr_file:`cmake/modules/FindHostTools.cmake` and
27 :zephyr_file:`cmake/modules/FindTargetTools.cmake` for more details on what your
28 :file:`generic.cmake` and :file:`target.cmake` files should contain.
30 You can also set ``ZEPHYR_TOOLCHAIN_VARIANT`` and ``TOOLCHAIN_ROOT`` as CMake
[all …]
/Zephyr-latest/tests/cmake/zephyr_get/
DCMakeLists.txt8 list(APPEND CMAKE_MODULE_PATH "${ZEPHYR_BASE}/cmake/modules")
11 # Project mode initialization (main CMake invocation)
27 # at the end, either here or in sysbuild.cmake.
100 set(VARIABLE "cmake cache" CACHE INTERNAL "")
103 # CMake cache value has the highest precedence.
105 assert_equal(VARIABLE "cmake cache")
135 set(TESTCASE_VARIABLE "cmake cache" CACHE INTERNAL "")
140 IMAGE no_sysbuild "cmake cache"
189 set(VARIABLE "cmake cache" CACHE INTERNAL "")
193 assert_equal(VARIABLE "cmake cache;environment;local")
[all …]
/Zephyr-latest/cmake/modules/
DFindTargetTools.cmake30 # Prevent CMake from testing the toolchain
34 # https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html:
35 # The name of the operating system for which CMake is to build.
37 # https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling:
39 # system, i.e. the same as CMAKE_SYSTEM_NAME would have if CMake would run
42 # like Linux.cmake or Windows-gcc.cmake. If your target is an embedded
46 # https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html:
47 # The name of the CPU CMake is building for.
49 # https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling:
53 # CMAKE_SYSTEM_NAME-compiler-CMAKE_SYSTEM_PROCESSOR.cmake file,
[all …]
Dzephyr_default.cmake5 # This CMake module will load all Zephyr CMake modules in correct order for
9 # See individual CMake module descriptions
13 # The code line below defines the real minimum supported CMake version.
15 # Unfortunately CMake requires the toplevel CMakeLists.txt file to define the
16 # required version, not even invoking it from a CMake module is sufficient.
22 # Different CMake versions can have very subtle differences, for
23 # instance CMake 3.21 links object files in a different order compared
24 # to CMake 3.20; this produces different binaries.
25 message(STATUS "CMake version: ${CMAKE_VERSION}")
53 # Test and error-out if we are affected by the PyPI CMake 3.22.1 / 3.22.2 bug
[all …]
/Zephyr-latest/scripts/west_commands/
Dexport.py13 This command registers the current Zephyr installation as a CMake
14 config package in the CMake user package registry.
16 In Windows, the CMake user package registry is found in:
17 HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\
19 In Linux and MacOS, the CMake user package registry is found in:
20 ~/.cmake/packages/'''
29 'export Zephyr installation as a CMake config package',
45 self.run_cmake_export(share / 'zephyr-package' / 'cmake')
46 self.run_cmake_export(share / 'zephyrunittest-package' / 'cmake')
52 # CMake status messages and instead only prints the important
[all …]
Dzcmake.py4 '''Common definitions for building Zephyr applications with CMake.
26 '''Name of the default CMake generator.'''
30 '''Run cmake to (re)generate a build system, a script, etc.
32 :param args: arguments to pass to CMake
33 :param cwd: directory to run CMake in, cwd is default
42 cmake = shutil.which('cmake')
43 if cmake is None and not dry_run:
44 log.die('CMake is not installed or cannot be found; cannot build.')
45 _ensure_min_version(cmake, dry_run)
47 cmd = [cmake] + args
[all …]
/Zephyr-latest/cmake/compiler/gcc/
Dtarget.cmake5 # Configures CMake for using GCC, this script is re-used by several
22 # with C++ support just set it to something so CMake doesn't
62 include(${ZEPHYR_BASE}/cmake/gcc-m-cpu.cmake)
63 include(${ZEPHYR_BASE}/cmake/gcc-m-fpu.cmake)
66 include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_arm.cmake)
68 include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_arm64.cmake)
70 include(${ZEPHYR_BASE}/cmake/compiler/gcc/target_arc.cmake)
72 include(${CMAKE_CURRENT_LIST_DIR}/target_riscv.cmake)
74 include(${CMAKE_CURRENT_LIST_DIR}/target_x86.cmake)
76 include(${CMAKE_CURRENT_LIST_DIR}/target_sparc.cmake)
[all …]
/Zephyr-latest/cmake/
Dtarget_toolchain_flags.cmake12 # * CMAKE_C_COMPILER_ID is taking the CMake compiler id for extra signature.
30 include(${CMAKE_CURRENT_LIST_DIR}/compiler/compiler_features.cmake)
36 include(${CMAKE_CURRENT_LIST_DIR}/compiler/compiler_flags_template.cmake)
37 include(${CMAKE_CURRENT_LIST_DIR}/linker/linker_flags_template.cmake)
38 include(${CMAKE_CURRENT_LIST_DIR}/linker/linker_libraries_template.cmake)
42 include(${TOOLCHAIN_ROOT}/cmake/compiler/${COMPILER}/compiler_flags.cmake OPTIONAL)
43 include(${TOOLCHAIN_ROOT}/cmake/linker/${LINKER}/linker_flags.cmake OPTIONAL)
46 include(${TOOLCHAIN_ROOT}/cmake/linker/linker_libraries_native.cmake)
48 include(${TOOLCHAIN_ROOT}/cmake/linker/${LINKER}/linker_libraries.cmake OPTIONAL)
Dpackage_helper.cmake6 # to the Zephyr CMake package and module structure.
9 # build tool that is executed during CMake configure time without creating a
12 # It does so by loading the Zephyr CMake modules specified with the 'MODULES'
15 # This script executes the given module identical to Zephyr CMake configure time.
22 # For example, if you were invoking CMake for 'hello_world' sample as:
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
30 # If you invoke CMake for 'hello_world' as:
32 # $ cmake -DBOARD=<board> -B build -S samples/hello_world -DEXTRA_CONF_FILE=foo.conf
[all …]
/Zephyr-latest/doc/develop/sca/
Dindex.rst6 Support for static code analysis tools in Zephyr is possible through CMake.
20 Support for an SCA tool is implemented in a :file:`sca.cmake` file.
21 The :file:`sca.cmake` must be placed under :file:`{SCA_ROOT}/cmake/sca/{tool}/sca.cmake`.
31 └── cmake/
34 └── sca.cmake # CMake code that configures the tool to be used with Zephyr
36 To add ``foo`` under ``/path/to/my_tools/cmake/sca`` create the following structure:
41 └── cmake/
44 └── sca.cmake
50 :makevar:`SCA_TOOL` can be set as a regular CMake setting using
/Zephyr-latest/share/zephyr-package/cmake/
Dzephyr_export.cmake3 # Purpose of this CMake file is to install a ZephyrConfig package reference in:
4 # Unix/Linux/MacOS: ~/.cmake/packages/Zephyr
9 # Create the reference by running `cmake -P zephyr_export.cmake` in this directory.
15 …"HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\Zephyr\;${MD5_SUM}" "${CMAKE_CURRENT_LIST_…
18 file(WRITE $ENV{HOME}/.cmake/packages/Zephyr/${MD5_SUM} ${CMAKE_CURRENT_LIST_DIR})
24 message("HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\Zephyr\n")
26 message("~/.cmake/packages/Zephyr\n")
/Zephyr-latest/share/zephyrunittest-package/cmake/
Dzephyr_export.cmake3 # Purpose of this CMake file is to install a ZephyrUnittestConfig package reference in:
4 # Unix/Linux/MacOS: ~/.cmake/packages/ZephyrUnittest
9 # Create the reference by running `cmake -P zephyr_export.cmake` in this directory.
15 …"HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\ZephyrUnittest\;${MD5_SUM}" "${CMAKE_CURRE…
18 file(WRITE $ENV{HOME}/.cmake/packages/ZephyrUnittest/${MD5_SUM} ${CMAKE_CURRENT_LIST_DIR})
24 message("HKEY_CURRENT_USER\\Software\\Kitware\\CMake\\Packages\\ZephyrUnittest\n")
26 message("~/.cmake/packages/ZephyrUnittest\n")
/Zephyr-latest/boards/nordic/nrf9160dk/
Dboard.cmake13 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
14 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
15 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
18 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
19 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
20 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
21 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/seeed/xiao_ble/
Dboard.cmake7 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
10 include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
11 include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)
12 include(${ZEPHYR_BASE}/boards/common/blackmagicprobe.board.cmake)
/Zephyr-latest/doc/develop/getting_started/
Dinstallation_linux.rst79 sudo apt-get install --no-install-recommends git cmake ninja-build gperf \
89 sudo dnf install cmake ninja-build gperf dfu-util dtc wget which \
102 flags. Zephyr's CMake build system will either warn or fail because of
121 sudo pacman -S git cmake ninja gperf ccache dfu-util dtc wget \
124 CMake subsection
127 A :ref:`recent CMake version <install-required-tools>` is required. Check what
128 version you have by using ``cmake --version``. If you have an older version,
133 to get an updated version of cmake using apt.
135 * Download and install a packaged cmake from the CMake project site.
136 (Note this won't uninstall the previous version of cmake.)
[all …]
/Zephyr-latest/tests/cmake/yaml/
DCMakeLists.txt43 yaml_get(actual NAME yaml-test KEY cmake test key-string)
52 yaml_length(actual NAME yaml-test KEY cmake test key-list-string)
58 yaml_get(actual NAME yaml-test KEY cmake test key-list-string)
69 yaml_get(actual NAME yaml-test KEY cmake test key-int)
78 yaml_length(actual NAME yaml-test KEY cmake test key-list-int)
84 yaml_get(actual NAME yaml-test KEY cmake test key-list-int)
95 yaml_get(actual NAME yaml-test KEY cmake test key-int)
103 set(expected cmake-missing-NOTFOUND)
104 yaml_get(actual NAME yaml-test KEY cmake missing test key)
112 set(expected cmake-missing-NOTFOUND)
[all …]
/Zephyr-latest/tests/cmake/overlays/soc_folder_kconfig/
Dtestcase.yaml3 - cmake
11 buildsystem.cmake.overlays.soc_folder_kconfig.default:
14 buildsystem.cmake.overlays.soc_folder_kconfig.suffix:
18 buildsystem.cmake.overlays.soc_folder_kconfig.conf:
22 buildsystem.cmake.overlays.soc_folder_kconfig.suffix.conf:
/Zephyr-latest/cmake/compiler/armclang/
Dcompiler_flags.cmake2 include(${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake)
4 # Required ASM flags when using armclang, this should be handled by CMake, but
5 # fails because of: https://gitlab.kitware.com/cmake/cmake/-/issues/19963
/Zephyr-latest/boards/qorvo/decawave_dwm3001cdk/
Dboard.cmake5 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/adafruit/itsybitsy/
Dboard.cmake3 include(${ZEPHYR_BASE}/boards/common/bossac.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/croxel/croxel_cx1825/
Dboard.cmake5 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/nordic/nrf21540dk/
Dboard.cmake5 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/nordic/nrf52833dk/
Dboard.cmake5 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
/Zephyr-latest/boards/nordic/nrf52dk/
Dboard.cmake5 include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
6 include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
7 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
9 include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

12345678910>>...42