Missing mcuboot_config.h

We moved a Zephyr project to SDK 3.0.2. After that it is possible to compile it on Mac and Linux machines but on WSL I'm getting an error:

 /home/psiem/FW2/deps/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/img_mgmt_client.c
In file included from /home/psiem/FW2/deps/bootloader/mcuboot/boot/bootutil/include/bootutil/image.h:33,
                 from /home/psiem/FW2/deps/zephyr/include/zephyr/mgmt/mcumgr/grp/img_mgmt/img_mgmt.h:14,
                 from /home/psiem/FW2/deps/zephyr/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/img_mgmt_client.c:23:
/home/psiem/FW2/deps/bootloader/mcuboot/boot/bootutil/include/bootutil/fault_injection_hardening.h:57:10: fatal error: mcuboot_config/mcuboot_config.h: No such file or directory
   57 | #include "mcuboot_config/mcuboot_config.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Looks like I miss some environment configuration. Where MCUboot configuration is located ?

Parents
  • I manually copied mcu_config folder from: bootloader/mcuboot/boot/zephyr/include to deps/bootloader/mcuboot/boot/bootutil/include/bootutil 

    It pass compilation problem but stuck now on linker:

    /lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: cannot find -lMCUBOOT_BOOTUTIL: No such file or directory
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    
    
     

Reply
  • I manually copied mcu_config folder from: bootloader/mcuboot/boot/zephyr/include to deps/bootloader/mcuboot/boot/bootutil/include/bootutil 

    It pass compilation problem but stuck now on linker:

    /lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: cannot find -lMCUBOOT_BOOTUTIL: No such file or directory
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    
    
     

Children
No Data
Related