west build failed due to mcuboot sysbuild

Hi,

With NCS v3.1.0 and Nordic's downstream zephyr ncs-v3.1.0, I got build failure with following message:

--

warning: attempt to assign the value 'n' to the undefined symbol MCUBOOT_HARDWARE_DOWNGRADE_PREVENTION

--

This failure can be reproduced by building sample 'with_mcuboot'.

Command as below:

west build -p always -b nrf52840dk/nrf52840 zephyr/samples/sysbuild/with_mcuboot --sysbuild

But I can succeed to build it without '--sysbuild'. And BTW, with same system (machine with Ubuntu v22.04 installed) I can build this sample with original 'zephyr' according to 'Getting Started Guide'

docs.zephyrproject.org/.../index.html

  • Hi Dunk,
    I was not able to reproduce your issue, the sample works just fine on my machine. Could you please share your entire build log?

    Regards,
    Benjamin

  • (.venv) luser@zephyrbuild:~/cbs$ west build -p always -b nrf52840dk/nrf52840 zephyr/samples/sysbuild/with_mcuboot --sysbuild
    -- west build: making build dir /home/luser/cbs/build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /home/luser/cbs/.venv/bin/python3 (found suitable version "3.10.12", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing /home/luser/cbs/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/home/luser/cbs/build/_sysbuild/empty.conf'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/sysbuild.conf'
    Configuration saved to '/home/luser/cbs/build/zephyr/.config'
    Kconfig header saved to '/home/luser/cbs/build/_sysbuild/autoconf.h'
    --
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/luser/cbs/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.22.1
    -- Found Python3: /home/luser/cbs/.venv/bin/python (found suitable version "3.10.12", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/luser/cbs/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.17.4 (/home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4)
    -- Found toolchain: zephyr 0.17.4 (/home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4)
    -- Found Dtc: /home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: /home/luser/cbs/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: /home/luser/cbs/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: /home/luser/cbs/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/luser/cbs/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    Parsing /home/luser/cbs/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/home/luser/cbs/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/luser/cbs/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/sysbuild/mcuboot.conf'
    Merged configuration '/home/luser/cbs/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to '/home/luser/cbs/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/luser/cbs/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: /home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    CMake Warning at /home/luser/cbs/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
    
    
            ----------------------------------------------------------
            --- WARNING: To maintain the integrity of secure boot, ---
            --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
            ----------------------------------------------------------
    
    
    -- Using ccache: /usr/bin/ccache
    -- Found gen_kobject_list: /home/luser/cbs/zephyr/scripts/build/gen_kobject_list.py
    MCUBoot bootloader key file: /home/luser/cbs/bootloader/mcuboot/root-ec-p256.pem
    CMake Warning at CMakeLists.txt:369 (message):
      WARNING: Using default MCUboot signing key file, this file is for debug use
      only and is not secure!
    
    
    Calculated maximum number of sectors: 118
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/luser/cbs/build/mcuboot
    --
       **********************************
       * Running CMake for with_mcuboot *
       **********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    -- CMake version: 3.22.1
    -- Found Python3: /home/luser/cbs/.venv/bin/python (found suitable version "3.10.12", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/luser/cbs/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.17.4 (/home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4)
    -- Found toolchain: zephyr 0.17.4 (/home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4)
    -- Found Dtc: /home/luser/zephyrproject/zephyr/zephyr-sdk-0.17.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /home/luser/cbs/build/with_mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: /home/luser/cbs/build/with_mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/luser/cbs/build/with_mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: UPDATEABLE_IMAGE_NUMBER (defined at
    /home/luser/cbs/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:87, subsys/dfu/Kconfig:96) was assigned
    the value '1' but got the value ''. Check these unsatisfied dependencies:
    (((BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS) && SOC_SERIES_NRF53X &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (!MCUBOOT && IMG_MANAGER)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UPDATEABLE_IMAGE_NUMBER and/or look up
    UPDATEABLE_IMAGE_NUMBER in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55) was assigned the value
    '0x2000' but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n),
    IMG_MANAGER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE and/or look up
    MCUBOOT_UPDATE_FOOTER_SIZE in the menuconfig/guiconfig interface. The Application Development
    Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
    might be helpful too.
    
    
    /home/luser/cbs/build/with_mcuboot/zephyr/.config.sysbuild:20: warning: attempt to assign the value 'n' to the undefined symbol MCUBOOT_HARDWARE_DOWNGRADE_PREVENTION
    Parsing /home/luser/cbs/zephyr/Kconfig
    Loaded configuration '/home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/prj.conf'
    Merged configuration '/home/luser/cbs/build/with_mcuboot/zephyr/.config.sysbuild'
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /home/luser/cbs/zephyr/cmake/modules/kconfig.cmake:377 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /home/luser/cbs/nrf/cmake/modules/kconfig.cmake:83 (include)
      /home/luser/cbs/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:530 (message):
      CMake configure failed for Zephyr project: with_mcuboot
    
      Location: /home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /home/luser/cbs/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/luser/cbs/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/luser/cbs/.venv/bin/python3 -B/home/luser/cbs/build -GNinja -DBOARD=nrf52840dk/nrf52840 -S/home/luser/cbs/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    (.venv) luser@zephyrbuild:~/cbs$
    

  • Hi Benjamin,

    Thanks for reply. The full log of building this sample was provided.

    BTW, I'm working on the Ubuntu environment, not any GUI/IDE involved.
    The steps I was used to initiate my development environment as below:

    • python3 -m venv .venv
    • source .venv/bin/activate
    • pip install west

    west initialization with west.yml as below

    manifest:
      self:
        path: cbs
    
      remotes:
        - name: zephyrproject-rtos
          url-base: https://github.com/zephyrproject-rtos
        - name: nrfconnect
          url-base: https://github.com/nrfconnect
    
      projects:
        - name: zephyr
          remote: nrfconnect
          repo-path: sdk-zephyr
          revision: ncs-v3.1.0
          import: true
        - name: nrf
          remote: nrfconnect
          repo-path: sdk-nrf
          revision: v3.1.0
          import: true

    • west update
    • pip install -r zephyr/scripts/requirements.txt
    • west sdk install -t arm-zephyr-eabi -b .
    • west zephyr-export
    • source zephyr/zephyr-env.sh
  • Hi Dunk,

    Could you try to install NCS by following this guide?

  • Hi Benjamin,

    I don't really understand the usage of nrfutil for the NCS SDK installation, but I've tried it on my environment as below:

    It's still failed:

    luser@zephyrbuild:~$ ./nrfutil install sdk-manager
    nrfutil-sdk-manager already installed - use '--force' to uninstall and reinstall the command
    [00:00:01] ###### 100% [Install packages] Install packages                                                                                                                                                       luser@zephyrbuild:~$ ls
    cbs  cbs_test  ncs  NCS-Project  nrfutil  sdk-zephyr.git  zephyrproject
    luser@zephyrbuild:~$ ls -la
    total 12892
    drwxr-x--- 13 luser luser     4096 Sep 23 10:02 .
    drwxr-xr-x  3 root  root      4096 Jan 22  2025 ..
    -rw-------  1 luser luser    67807 Sep 23 10:02 .bash_history
    -rw-r--r--  1 luser luser      220 Jan  6  2022 .bash_logout
    -rw-r--r--  1 luser luser     3771 Jan  6  2022 .bashrc
    drwx------  5 luser luser     4096 Sep  2 08:33 .cache
    drwxrwxr-x 16 luser luser     4096 Sep 17 10:33 cbs
    drwxrwxr-x 13 luser luser     4096 Sep 19 09:28 cbs_test
    drwxrwxr-x  3 luser luser     4096 Sep  2 07:59 .cmake
    -rw-rw-r--  1 luser luser      633 Sep 19 09:35 .gitconfig
    -rw-------  1 luser luser      884 Sep 22 08:20 .lesshst
    drwxrwxr-x  6 luser luser     4096 Sep  3 02:50 ncs
    drwxrwxr-x 13 luser luser     4096 Sep  3 08:01 NCS-Project
    drwxrwxr-x 11 luser luser     4096 Sep  2 08:54 .nrfutil
    -rwxrwxr-x  1 luser luser 13003448 Nov  4  2024 nrfutil
    -rw-r--r--  1 luser luser      807 Jan  6  2022 .profile
    drwxrwxr-x 12 luser luser     4096 Jan 22  2025 sdk-zephyr.git
    drwx------  2 luser luser     4096 Sep 19 08:45 .ssh
    -rw-r--r--  1 luser luser        0 Jan 22  2025 .sudo_as_admin_successful
    drwxr-xr-x  2 luser luser     4096 Sep 17 02:53 .vim
    -rw-------  1 luser luser    45147 Sep 19 09:35 .viminfo
    -rw-rw-r--  1 luser luser      210 Sep 22 08:41 .wget-hsts
    drwxrwxr-x 10 luser luser     4096 Sep 22 08:46 zephyrproject
    luser@zephyrbuild:~$ ls .nrfutil/
    bin  bootstrap  cache  config  installed  logs  registry  share  tmp
    luser@zephyrbuild:~$ ls .nrfutil/installed/
    nrfutil-sdk-manager-x86_64-unknown-linux-gnu  nrfutil-x86_64-unknown-linux-gnu
    luser@zephyrbuild:~$ nrfutil sdk-manager search
    nrfutil: command not found
    luser@zephyrbuild:~$ ./nrfutil sdk-manager search
    SDK Type  SDK Version      SDK Status  Toolchain Version  Toolchain Status
    nrf       v3.2.0-preview1  Available   v3.2.0-preview1    Available
    nrf       v3.1.1           Available   v3.1.1             Available
    nrf       v3.1.0           Installed   v3.1.0             Installed
    nrf       v3.0.2           Available   v3.0.2             Available
    nrf       v3.0.1           Available   v3.0.1             Available
    nrf       v3.0.0           Available   v3.0.0             Available
    nrf       v2.9.2           Available   v2.9.2             Available
    nrf       v2.9.1           Available   v2.9.1             Available
    nrf       v2.9.0           Available   v2.9.0             Available
    nrf       v2.8.0           Available   v2.8.0             Available
    nrf       v2.7.0           Available   v2.7.0             Available
    nrf       v2.6.0           Available   v2.6.0             Available
    nrf       v2.5.0           Available   v2.5.0             Available
    nrf       v2.4.0           Available   v2.4.0             Available
    nrf       v2.3.0           Available   v2.3.0             Available
    nrf       v2.2.0           Available   v2.2.0             Available
    nrf       v2.1.0           Available   v2.1.0             Available
    nrf       v2.0.0           Available   v2.0.0             Available
    
    luser@zephyrbuild:~$ ./nrfutil sdk-manager install v3.1.0
    [00:00:00] ###### 100% [Install toolchain v3.1.0] Toolchain with version v3.1.0 already installed                                                                                                                [00:00:00] ###### 100% [Install SDK v3.1.0] SDK with version v3.1.0 already installed                                                                                                                            luser@zephyrbuild:~$ ls ncs/
    downloads  tmp  toolchains  v3.1.0
    luser@zephyrbuild:~$ ./nrfutil sdk-manager toolchain launch --ncs-version v3.1.0 --shell
    Initializing shell environment!
    
    (v3.1.0) luser@zephyrbuild:~$ ls
    cbs  cbs_test  ncs  NCS-Project  nrfutil  sdk-zephyr.git  zephyrproject
    (v3.1.0) luser@zephyrbuild:~$ cd cbs
    (v3.1.0) luser@zephyrbuild:~/cbs$ ls
    bootloader  build  cbs_nrf_sdk_3.1.0  cbs_nrf_sdk_3.1.0.org  modules  nrf  nrfxlib  test  tools  zephyr  zephyr-sdk-0.17.0  zephyr-sdk-0.17.1
    (v3.1.0) luser@zephyrbuild:~/cbs$ source zephyr/zephyr-env.sh
    (v3.1.0) luser@zephyrbuild:~/cbs$ west ^C
    (v3.1.0) luser@zephyrbuild:~/cbs$ west build -p always -b nrf52840dk/nrf52840 zephyr/samples/sysbuild/with_mcuboot --sysbuild
    -- west build: making build dir /home/luser/cbs/build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /home/luser/ncs/toolchains/c5be9c56c7/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing /home/luser/cbs/zephyr/share/sysbuild/Kconfig
    Loaded configuration '/home/luser/cbs/build/_sysbuild/empty.conf'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/sysbuild.conf'
    Configuration saved to '/home/luser/cbs/build/zephyr/.config'
    Kconfig header saved to '/home/luser/cbs/build/_sysbuild/autoconf.h'
    --
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/luser/cbs/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: /home/luser/ncs/toolchains/c5be9c56c7/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/luser/cbs/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (/home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk)
    -- Found Dtc: /home/luser/ncs/toolchains/c5be9c56c7/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: /home/luser/cbs/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: /home/luser/cbs/build/mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: /home/luser/cbs/build/mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/luser/cbs/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    Parsing /home/luser/cbs/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/home/luser/cbs/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/luser/cbs/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/sysbuild/mcuboot.conf'
    Merged configuration '/home/luser/cbs/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to '/home/luser/cbs/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/luser/cbs/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: /home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: /home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    CMake Warning at /home/luser/cbs/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
    
    
            ----------------------------------------------------------
            --- WARNING: To maintain the integrity of secure boot, ---
            --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
            ----------------------------------------------------------
    
    
    -- Using ccache: /home/luser/ncs/toolchains/c5be9c56c7/usr/bin/ccache
    -- Found gen_kobject_list: /home/luser/cbs/zephyr/scripts/build/gen_kobject_list.py
    MCUBoot bootloader key file: /home/luser/cbs/bootloader/mcuboot/root-ec-p256.pem
    CMake Warning at CMakeLists.txt:369 (message):
      WARNING: Using default MCUboot signing key file, this file is for debug use
      only and is not secure!
    
    
    Calculated maximum number of sectors: 118
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/luser/cbs/build/mcuboot
    --
       **********************************
       * Running CMake for with_mcuboot *
       **********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    -- CMake version: 3.21.0
    -- Found Python3: /home/luser/ncs/toolchains/c5be9c56c7/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: /home/luser/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/luser/cbs/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (/home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/home/luser/ncs/toolchains/c5be9c56c7/opt/zephyr-sdk)
    -- Found Dtc: /home/luser/ncs/toolchains/c5be9c56c7/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
    -- Found BOARD.dts: /home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /home/luser/cbs/build/with_mcuboot/zephyr/zephyr.dts
    -- Generated pickled edt: /home/luser/cbs/build/with_mcuboot/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/luser/cbs/build/with_mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: UPDATEABLE_IMAGE_NUMBER (defined at
    /home/luser/cbs/nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig:87, subsys/dfu/Kconfig:96) was assigned
    the value '1' but got the value ''. Check these unsatisfied dependencies:
    (((BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS) && SOC_SERIES_NRF53X &&
    NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (!MCUBOOT && IMG_MANAGER)) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UPDATEABLE_IMAGE_NUMBER and/or look up
    UPDATEABLE_IMAGE_NUMBER in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55) was assigned the value
    '0x2000' but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n),
    IMG_MANAGER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE and/or look up
    MCUBOOT_UPDATE_FOOTER_SIZE in the menuconfig/guiconfig interface. The Application Development
    Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
    might be helpful too.
    
    
    /home/luser/cbs/build/with_mcuboot/zephyr/.config.sysbuild:20: warning: attempt to assign the value 'n' to the undefined symbol MCUBOOT_HARDWARE_DOWNGRADE_PREVENTION
    Parsing /home/luser/cbs/zephyr/Kconfig
    Loaded configuration '/home/luser/cbs/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot/prj.conf'
    Merged configuration '/home/luser/cbs/build/with_mcuboot/zephyr/.config.sysbuild'
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at /home/luser/cbs/zephyr/cmake/modules/kconfig.cmake:377 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /home/luser/cbs/nrf/cmake/modules/kconfig.cmake:83 (include)
      /home/luser/cbs/zephyr/cmake/modules/zephyr_default.cmake:131 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:530 (message):
      CMake configure failed for Zephyr project: with_mcuboot
    
      Location: /home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:21 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /home/luser/cbs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /home/luser/cbs/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/luser/cbs/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/luser/ncs/toolchains/c5be9c56c7/usr/local/bin/cmake -DWEST_PYTHON=/home/luser/ncs/toolchains/c5be9c56c7/usr/local/bin/python3.12 -B/home/luser/cbs/build -GNinja -DBOARD=nrf52840dk/nrf52840 -S/home/luser/cbs/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/luser/cbs/zephyr/samples/sysbuild/with_mcuboot
    (v3.1.0) luser@zephyrbuild:~/cbs$

Related