Skip to content

Commit 2e69a79

Browse files
committed
Support logless builds for silabs
1 parent 3843505 commit 2e69a79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/silabs/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ GCC_BIN ?= arm-none-eabi-gcc
99
# Version and board configuration
1010
VERSION_STR ?= 0.0.0
1111
FILE_VERSION ?= 0
12+
DEBUG ?= 0
1213

1314

1415
DEVICE_TYPE ?= router
@@ -80,6 +81,13 @@ BOOTLOADER_PROJECT_FILE := bootloader.slcp
8081
OTA_FILE ?= $(ZIGBEE_BUILD_DIR)/build/release/$(ZIGBEE_PROJECT_NAME)_ota.bin
8182
BIN_FILE ?= $(ZIGBEE_BUILD_DIR)/build/release/$(ZIGBEE_PROJECT_NAME).s37
8283

84+
# Component exclusion based on DEBUG flag
85+
ifeq ($(DEBUG), 0)
86+
WITHOUT_COMPONENTS = --without=iostream_usart:inst,iostream_recommended_stream
87+
else
88+
WITHOUT_COMPONENTS =
89+
endif
90+
8391
# Generate project files
8492
gen:
8593
rm -rf $(ZIGBEE_BUILD_DIR)
@@ -96,6 +104,7 @@ gen:
96104
-d "$(ZIGBEE_BUILD_DIR)" \
97105
-name $(ZIGBEE_PROJECT_NAME) \
98106
--with EFR32MG21A020F768IM32 \
107+
$(WITHOUT_COMPONENTS) \
99108
--toolchain=gcc \
100109
--output-type=makefile
101110

0 commit comments

Comments
 (0)