diff --git a/boot/zephyr/CMakeLists.txt b/boot/zephyr/CMakeLists.txt index fea51b88..b9bf5178 100644 --- a/boot/zephyr/CMakeLists.txt +++ b/boot/zephyr/CMakeLists.txt @@ -92,9 +92,14 @@ zephyr_library_sources( flash_map_extended.c os.c keys.c - boot_serial_extensions.c ) +if(DEFINED CONFIG_ENABLE_MGMT_PERUSER) + zephyr_library_sources( + boot_serial_extensions.c + ) +endif() + if(NOT DEFINED CONFIG_FLASH_PAGE_LAYOUT) zephyr_library_sources( flash_map_legacy.c