From 428d3ee78b0afe6da99624e2caa0ee5b65c82f96 Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Tue, 17 Aug 2021 07:55:54 +0000 Subject: [PATCH] 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 --- boot/zephyr/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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