Home
last modified time | relevance | path

Searched +full:cmake +full:- +full:3 (Results 1 – 25 of 126) sorted by relevance

123456

/Zephyr-latest/tests/cmake/zephyr_get/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
6 # Script mode initialization (re-run)
8 list(APPEND CMAKE_MODULE_PATH "${ZEPHYR_BASE}/cmake/modules")
11 # Project mode initialization (main CMake invocation)
24 # - run_suite(<test-1> [<test-2> ...])
27 # at the end, either here or in sysbuild.cmake.
47 # - assert_equal(<variable> <expected-value>)
49 # - assert_equal(<variable>
50 # IMAGE <image-1> <expected-value-for-image-1>
51 # [IMAGE <image-2> <expected-value-for-image-2> ...]
[all …]
/Zephyr-latest/tests/cmake/overlays/soc_folder_kconfig/
Dtestcase.yaml3 - cmake
5 - native_sim
6 - native_sim/native/64
8 - native_sim
9 - native_sim/native/64
11 buildsystem.cmake.overlays.soc_folder_kconfig.default:
13 - CONFIG_TEST_TYPE=0
14 buildsystem.cmake.overlays.soc_folder_kconfig.suffix:
16 - CONFIG_TEST_TYPE=1
17 - FILE_SUFFIX=somesuffix
[all …]
/Zephyr-latest/include/zephyr/linker/
Dapp_smem.ld1 /* SPDX-License-Identifier: Apache-2.0 */
4 * This hackish way of including files is due to CMake issues:
5 * https://gitlab.kitware.com/cmake/cmake/issues/11985
6 * https://gitlab.kitware.com/cmake/cmake/issues/13718
8 * When using the "Unix Makefiles" generator, CMake simply
16 * 3. Using A_prebuilt.elf to create B.ld.
24 * hackish needs to be used since CMake does not parse
Dapp_smem_pinned.ld4 * SPDX-License-Identifier: Apache-2.0
8 * This hackish way of including files is due to CMake issues:
9 * https://gitlab.kitware.com/cmake/cmake/issues/11985
10 * https://gitlab.kitware.com/cmake/cmake/issues/13718
12 * When using the "Unix Makefiles" generator, CMake simply
20 * 3. Using A_prebuilt.elf to create B.ld.
28 * hackish needs to be used since CMake does not parse
/Zephyr-latest/tests/cmake/yaml/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
6 # Project mode initialization (main CMake invocation)
10 message(STATUS "Run 1 -------------\n CMake PROJECT mode\n----------------------")
12 # Script mode initialization (re-run)
14 list(APPEND CMAKE_MODULE_PATH "${ZEPHYR_BASE}/cmake/modules")
16 message(STATUS "Run 2 ------------\n CMake SCRIPT mode\n---------------------")
53 yaml_get(actual NAME yaml-test KEY cmake test key-string)
62 yaml_length(actual NAME yaml-test KEY cmake test key-list-string)
68 yaml_get(actual NAME yaml-test KEY cmake test key-list-string)
79 yaml_get(actual NAME yaml-test KEY cmake test key-int)
[all …]
/Zephyr-latest/boards/nxp/mimxrt1050_evk/
Dboard.cmake4 # SPDX-License-Identifier: Apache-2.0
13 board_runner_args(jlink "--device=MCIMXRT1052")
14 board_runner_args(linkserver "--device=MIMXRT1052xxxxB:EVKB-IMXRT1050")
17 board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
18 board_runner_args(pyocd "--target=mimxrt1050_quadspi")
19 board_runner_args(linkserver "--override=/device/memory/3/flash-driver=MIMXRT1050_SFDP_QSPI.cfx")
21 board_runner_args(pyocd "--target=mimxrt1050_hyperflash")
24 include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)
25 include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
26 include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
/Zephyr-latest/cmake/util/
Dfmerge.cmake1 # SPDX-License-Identifier: Apache-2.0
6 MATH(EXPR ARGC "${CMAKE_ARGC}-1")
7 # First 3 arguments are "cmake", "-P", and "process.cmake"
/Zephyr-latest/
D.editorconfig3 # top-most EditorConfig file
8 charset = utf-8
47 indent_size = 3
68 indent_size = 3
70 # CMake
71 [{CMakeLists.txt,*.cmake}]
/Zephyr-latest/doc/develop/getting_started/
Dinstallation_linux.rst32 .. group-tab:: Ubuntu
34 .. code-block:: console
36 sudo apt-get update
37 sudo apt-get upgrade
39 .. group-tab:: Fedora
41 .. code-block:: console
45 .. group-tab:: Clear Linux
47 .. code-block:: console
51 .. group-tab:: Arch Linux
53 .. code-block:: console
[all …]
/Zephyr-latest/samples/tfm_integration/psa_crypto/
DREADME.rst1 .. zephyr:code-sample:: tfm_psa_crypto
2 :name: TF-M PSA crypto
8 This TF-M integration example demonstrates how to use the PSA crypto API in
10 this example also demonstrates certain TF-M features that are covered as part
15 Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs
17 non-secure processing environment.
20 handle secure TF-M API calls and responses.
22 The sample prints test info to the console either as a single-thread or
23 multi-thread application.
26 https://www.psacertified.org/security-certification/psa-certified-level-1/
[all …]
/Zephyr-latest/share/zephyr-package/cmake/
DZephyrConfigVersion.cmake1 # SPDX-License-Identifier: Apache-2.0
5 # The purpose of the version file is to ensure that CMake find_package can correctly locate a
27 …# In future, this is the place to update in case Zephyr 3.x is not backward compatible with versio…
48 include(${CMAKE_CURRENT_LIST_DIR}/zephyr_package_search.cmake)
55 if (${ZEPHYR_BASE}/share/zephyr-package/cmake STREQUAL ${CMAKE_CURRENT_LIST_DIR})
59 include(${ZEPHYR_BASE}/cmake/modules/version.cmake)
60 # Zephyr uses project version, but CMake package uses PACKAGE_VERSION
65 # We are included, so we need to ensure that the version of the top-level
90 # Temporary set local Zephyr base to allow using version.cmake to find this Zephyr repository curre…
93 # Tell version.cmake to not print as printing version for all Zephyr installations being tested
[all …]
/Zephyr-latest/boards/common/
Dopenocd-nrf5.board.cmake1 # SPDX-License-Identifier: Apache-2.0
20 "To fix, set CMake variable OPENOCD_NRF5_SUBFAMILY.")
29 # Zephyr SDK 0.10.3.
38 board_runner_args(openocd --cmd-pre-init "${cmd}")
41 include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
/Zephyr-latest/scripts/
Dsnippets.py5 # SPDX-License-Identifier: Apache-2.0
11 Output CMake variables:
13 - SNIPPET_NAMES: CMake list of discovered snippet names
14 - SNIPPET_FOUND_{snippet}: one per discovered snippet
65 if (sysbuild is True and variable[0:3] == 'SB_') or \
66 (sysbuild is False and variable[0:3] != 'SB_'):
73 if (sysbuild is True and variable[0:3] == 'SB_') or \
74 (sysbuild is False and variable[0:3] != 'SB_'):
96 '''Helper class for printing a Snippets's semantics to a .cmake
97 include file for use by snippets.cmake.'''
[all …]
/Zephyr-latest/include/zephyr/arch/sparc/
Dlinker.ld2 * Copyright (c) 2019-2020 Cobham Gaisler AB
4 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/linker/linker-defs.h>
17 #include <zephyr/linker/linker-tool.h>
24 #include <zephyr/linker/rel-sections.ld>
27 #include <zephyr/linker/llext-sections.ld>
48 #include <zephyr/linker/common-rom.ld>
52 #include <snippets-rom-sections.ld>
53 #include <zephyr/linker/thread-local-storage.ld>
64 * zephyr_linker_sources() Cmake function.
[all …]
/Zephyr-latest/samples/net/sockets/tcp/
DREADME.rst1 .. zephyr:code-sample:: sockets-tcp-sample
2 :name: TCP sample for TTCN-3 based sanity check
3 :relevant-api: bsd_sockets
5 Use TTCN-3 to validate the functionality of the TCP stack.
10 This application is used together with the TTCN-3 based sanity check
13 Building, Running and executing TTCN-3 based Sanity Check for TCP
16 Compile and start the `net-test-tools`_:
18 .. code-block:: console
22 ./loop-slipcat.sh
26 .. code-block:: console
[all …]
/Zephyr-latest/cmake/linker_script/arm/
Dlinker.cmake1 set(COMMON_ZEPHYR_LINKER_DIR ${ZEPHYR_BASE}/cmake/linker_script/common)
9 # If building without MPU support, use default 4-byte alignment.. if not set above.
21 "(${CONFIG_FLASH_LOAD_SIZE} + 0) - (${CONFIG_ROM_END_OFFSET} + 0)"
26 …"(${CONFIG_FLASH_SIZE} + 0) * 1024 - (${CONFIG_FLASH_LOAD_OFFSET} + 0) - (${CONFIG_ROM_END_OFFSET}…
36 # linker/ld/target.cmake based on arch, or directly in arch and scatter_script.cmake can ignore
37 zephyr_linker(FORMAT "elf32-littlearm")
44 dt_comp_path(paths COMPATIBLE "zephyr,memory-region")
63 # should go to a relocation.cmake - from include/linker/rel-sections.ld - start
68 # should go to a relocation.cmake - from include/linker/rel-sections.ld - end
105 include(${COMMON_ZEPHYR_LINKER_DIR}/common-rom.cmake)
[all …]
/Zephyr-latest/doc/kernel/iterable_sections/
Dindex.rst7 which can be used for defining iterable areas of equally-sized data structures,
17 .. code-block:: c
32 DEFINE_DATA(d2, 3, 4);
39 ``zephyr_linker_sources()`` CMake functions, using the appropriate section
42 .. code-block:: cmake
47 .. code-block:: c
55 .. code-block:: c
58 printk("%p: a: %d, b: %d\n", data, data->a, data->b);
/Zephyr-latest/include/zephyr/arch/mips/
Dlinker.ld6 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/linker/linker-defs.h>
16 #include <zephyr/linker/linker-tool.h>
42 PROVIDE (__stack = CONFIG_SRAM_BASE_ADDRESS + (CONFIG_SRAM_SIZE - 1) * 1024);
47 #include <zephyr/linker/rel-sections.ld>
50 #include <zephyr/linker/llext-sections.ld>
81 #include <zephyr/linker/common-rom.ld>
85 #include <snippets-rom-sections.ld>
86 #include <zephyr/linker/thread-local-storage.ld>
97 * zephyr_linker_sources() Cmake function.
[all …]
/Zephyr-latest/soc/infineon/cat1b/cyw20829/
Dlinker.ld2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
11 * Linker script for the Cortex-M platforms.
19 #include <zephyr/linker/linker-defs.h>
20 #include <zephyr/linker/linker-tool.h>
43 #define ROM_SIZE (CONFIG_FLASH_LOAD_SIZE - ROM_END_OFFSET)
45 #define ROM_SIZE (CONFIG_FLASH_SIZE * 1024 - CONFIG_FLASH_LOAD_OFFSET - ROM_END_OFFSET)
60 /* If building without MPU support, use default 4-byte alignment. */
74 #include <zephyr/linker/linker-devnull.h>
95 #include <zephyr/linker/rel-sections.ld>
[all …]
/Zephyr-latest/cmake/compiler/clang/
Dcompiler_flags.cmake2 include(${ZEPHYR_BASE}/cmake/compiler/gcc/compiler_flags.cmake)
10 # No printf-return-value optimizations in clang
14 # But clang has problems compiling these with -fno-freestanding.
19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping)
21 set_compiler_property(PROPERTY coverage --coverage -fno-inline)
25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics)
28 set_compiler_property(PROPERTY save_temps -save-temps)
30 # clang doesn't handle the -T flag
31 set_compiler_property(PROPERTY linker_script -Wl,-T)
39 -Wall
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py4 # SPDX-License-Identifier: Apache-2.0
32 CMake,
71 def project_builder(mocked_instance, mocked_env, mocked_jobserver) -> ProjectBuilder:
77 def runners(project_builder: ProjectBuilder) -> dict:
119 "-DCONFIG_t=\"test\"",
120 "-Dcmake1=foo", "-Dcmake2=bar",
121 "-Dbasearg1", "-DSNIPPET_t=test",
122 "-Dhandler_arg1", "-Dhandler_arg2",
123 "-DCONF_FILE=a.conf;b.conf;c.conf",
124 "-DDTC_OVERLAY_FILE=x.overlay;y.overlay;z.overlay",
[all …]
/Zephyr-latest/doc/build/cmake/
Dindex.rst1 .. _cmake-details:
3 Build System (CMake)
7 CMake is used to build your application together with the Zephyr kernel. A
8 CMake build is done in two stages. The first stage is called
10 executed. After configuration is finished, CMake has an internal model of the
14 CMake supports generating scripts for several build systems, but only Ninja and
17 can recompile the application without involving CMake following
23 Zephyr uses CMake's concept of a 'target' to organize the build. A
32 .. code-block:: cmake
46 When introducing build system code using CMake or adding new CMake files,
[all …]
/Zephyr-latest/doc/develop/west/
Dbuild-flash-debug.rst1 .. _west-build-flash-debug:
6 Zephyr provides several :ref:`west extension commands <west-extensions>` for
11 commands, see :ref:`flash-and-debug-support` in the board porting guide.
13 .. Add a per-page contents at the top of the page. This page is nested
21 .. _west-building:
26 .. tip:: Run ``west build -h`` for a quick overview.
29 use :ref:`west config <west-config-cmd>` to configure its behavior.
33 - If there is a Zephyr build directory named :file:`build` in your current
34 working directory, it is incrementally re-compiled. The same is true if you
37 - Otherwise, if you run ``west build`` from a Zephyr application's source
[all …]
/Zephyr-latest/samples/tfm_integration/tfm_ipc/
DREADME.rst1 .. zephyr:code-sample:: tfm_ipc
2 :name: TF-M IPC
4 Implement communication between the secure and non-secure images using IPC.
9 This is a simple TF-M integration example that can be used with an ARMv8-M
12 It uses **IPC Mode** for communication, where TF-M API calls are made to the
16 Zephyr uses Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs
18 non-secure configuration.
20 The sample prints test info to the console either as a single-thread or
21 multi-thread application.
23 The sample reboots after 5 seconds to demonstrate rebooting with TF-M.
[all …]
/Zephyr-latest/tests/bsim/
Dcompile.source2 # SPDX-License-Identifier: Apache-2.0
8 WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
11 echo -e "\033[0;31mFailure building ${app} ${conf_file} for ${BOARD}\033[0m\n\
19 local app_root="${app_root:-${ZEPHYR_BASE}}"
20 local BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
21 local conf_file="${conf_file:-prj.conf}"
22 local extra_conf_file="${extra_conf_file:-""}"
23 local conf_overlay="${conf_overlay:-""}"
24 local snippet="${snippet:-""}"
26 default_cmake_args=(-DCONFIG_COVERAGE=y -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
[all …]

123456