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:
parent
0435d5d9b7
commit
428d3ee78b
|
@ -92,8 +92,13 @@ zephyr_library_sources(
|
|||
flash_map_extended.c
|
||||
os.c
|
||||
keys.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(
|
||||
|
|
Loading…
Reference in New Issue