File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ GCC_BIN ?= arm-none-eabi-gcc
99# Version and board configuration
1010VERSION_STR ?= 0.0.0
1111FILE_VERSION ?= 0
12+ DEBUG ?= 0
1213
1314
1415DEVICE_TYPE ?= router
@@ -80,6 +81,13 @@ BOOTLOADER_PROJECT_FILE := bootloader.slcp
8081OTA_FILE ?= $(ZIGBEE_BUILD_DIR ) /build/release/$(ZIGBEE_PROJECT_NAME ) _ota.bin
8182BIN_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
8492gen :
8593 rm -rf $(ZIGBEE_BUILD_DIR )
96104 -d "$(ZIGBEE_BUILD_DIR ) " \
97105 -name $(ZIGBEE_PROJECT_NAME ) \
98106 --with EFR32MG21A020F768IM32 \
107+ $(WITHOUT_COMPONENTS ) \
99108 --toolchain=gcc \
100109 --output-type=makefile
101110
You can’t perform that action at this time.
0 commit comments