samples: mgmt: mcumgr: Remove un-necessary modules from build

This removes some modules and functionality from the sample to
reduce the output application size to assist in fitting it to MCUs
with less flash storage space.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2022-11-07 16:04:49 +00:00 committed by Fabio Baltieri
commit f33eab8fb6
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# Use minimal logging mode and disable info/debug logging to reduce flash space
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MAX_LEVEL=2
CONFIG_LOG_DEFAULT_LEVEL=2
# Disable RTT support
CONFIG_USE_SEGGER_RTT=n
# Disable Bluetooth PHY update support
CONFIG_BT_USER_PHY_UPDATE=n
CONFIG_BT_PHY_UPDATE=n

View file

@ -30,3 +30,12 @@ CONFIG_MCUMGR_CMD_FS_MGMT=y
# Enable the storage erase command.
CONFIG_MCUMGR_GRP_ZEPHYR_BASIC=y
CONFIG_MCUMGR_GRP_BASIC_CMD_STORAGE_ERASE=y
# Disable Bluetooth ping support
CONFIG_BT_CTLR_LE_PING=n
# Disable shell commands that are not needed
CONFIG_CLOCK_CONTROL_NRF_SHELL=n
CONFIG_DEVICE_SHELL=n
CONFIG_DEVMEM_SHELL=n
CONFIG_FLASH_SHELL=n

View file

@ -29,3 +29,6 @@ CONFIG_MCUMGR_CMD_STAT_MGMT=y
# Enable logging
CONFIG_LOG=y
CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y
# Disable debug logging
CONFIG_LOG_MAX_LEVEL=3