Enabling MCU BOOT

Hi,

I have a project which has been working fine but since adding some date/time functionality, when I enable MCU_BOOT, I get linker errors that I can't seem to get to the bottom of.

If I set the following in prj.conf:

CONFIG_BOOTLOADER_MCUBOOT=n
I can compile and link OK.
If change to: 
CONFIG_BOOTLOADER_MCUBOOT=y
I get the following linker errors:
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/nrf/lib/date_time/lib..__nrf__lib__date_time.a(date_time_core.c.obj): in function `k_work_delayable_is_pending':
/opt/nordic/ncs/v2.6.2/zephyr/include/zephyr/kernel.h:4050: undefined reference to `k_work_delayable_busy_get'
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/nrf/lib/date_time/lib..__nrf__lib__date_time.a(date_time_core.c.obj): in function `date_time_core_schedule_update':
/opt/nordic/ncs/v2.6.2/nrf/lib/date_time/date_time_core.c:69: undefined reference to `k_work_reschedule'
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/nrf/lib/date_time/lib..__nrf__lib__date_time.a(date_time_core.c.obj): in function `k_sem_give':
/Users/nick/Documents/Developement/Nordic/nRFConnect/helios_tracker_r4_SDK2.5.2/build_5/mcuboot/zephyr/include/generated/syscalls/kernel.h:1120: undefined reference to `z_impl_k_sem_give'
/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/nrf/lib/date_time/lib..__nrf__lib__date_time.a(date_time_core.c.obj): in function `k_sem_take':
/Users/nick/Documents/Developement/Nordic/nRFConnect/helios_tracker_r4_SDK2.5.2/build_5/mcuboot/zephyr/include/generated/syscalls/kernel.h:1103: undefined reference to `z_impl_k_sem_take'
 
I am running NCS v2.6.2.
Any idea what could be the issue?
Related