zephyr: Make boot_serial_extension.c compilation conditional

The commit modifies CMakeLists.txt to include the file into compilation
only when CONFIG_ENABLE_MGMT_PERUSER is selected.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2021-08-17 07:55:54 +00:00 committed by Andrzej Puzdrowski
parent 0435d5d9b7
commit 428d3ee78b
1 changed files with 6 additions and 1 deletions

View File

@ -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