Lines Matching +full:sysbuild +full:- +full:cmake
1 .. _build-signing:
6 Binaries can be optionally signed as part of a build automatically using CMake code, there is
8 latter is documented on :ref:`west-sign`.
19 :zephyr:code-sample:`hello_world` application for chain-loading by MCUboot. Run these commands
22 .. code-block:: console
24 west build -b YOUR_BOARD zephyr/samples/hello_world --sysbuild -d build-hello-signed -- \
25 -DSB_CONFIG_BOOTLOADER_MCUBOOT=y
27 west flash -d build-hello-signed
31 - ``YOUR_BOARD`` should be changed to match your board
32 - The singing key value is the insecure default provided and used by MCUboot for development
34 - You can change the ``hello_world`` application directory to any other application that can be
35 loaded by MCUboot, such as the :zephyr:code-sample:`smp-svr` sample.
39 - ``SB_CONFIG_BOOTLOADER_MCUBOOT``: build the application for loading by MCUboot
40 - ``SB_CONFIG_BOOT_SIGNATURE_KEY_FILE``: the key file to use when singing images. If you have
42 - :kconfig:option:`CONFIG_MCUBOOT_EXTRA_IMGTOOL_ARGS`: optional additional command line arguments
44 - :kconfig:option:`CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE`: also generate a confirmed image,
45 which may be more useful for flashing in production environments than the OTA-able default image
46 - On Windows, if you get "Access denied" issues, the recommended fix is to run
49 If your ``west flash`` :ref:`runner <west-runner>` uses an image format supported by imgtool, you
51 ``west flash -d build-hello-signed``:
53 .. code-block:: none
55 *** Booting Zephyr OS build zephyr-v2.3.0-2310-gcebac69c8ae1 ***
62 *** Booting Zephyr OS build zephyr-v2.3.0-2310-gcebac69c8ae1 ***
69 .. _west-extending-signing:
76 the :file:`cmake/mcuboot.cmake` file in Zephyr which adds extra post build commands for generating
77 the signed images. The file used for signing can be replaced from a sysbuild scope (if being used)
80 * Sysbuild
84 From sysbuild, ``-D<target>_SIGNING_SCRIPT`` can be used to set a signing script for a specific
85 image or ``-DSIGNING_SCRIPT`` can be used to set a signing script for all images, for example:
87 .. code-block:: console
89 west build -b <board> <application> -DSIGNING_SCRIPT=<file>
94 .. code-block:: cmake
97 …es(zephyr_property_target PROPERTIES SIGNING_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/custom_signing.cmake)
100 This will include the custom signing CMake file instead of the default Zephyr one when projects