feat : Enhance compiler settings with Z-Stack SDK path spec and optimization level adjustments
Some checks failed
CC2530 Zigbee Firmware Build / build (push) Failing after 29s

- The main goal of the changes is to enhance the compiler settings by adding path specifications for the Z-Stack SDK and adjust optimization levels.
This commit is contained in:
2025-02-22 22:53:15 +01:00
parent d1afed99c5
commit bb9e195485

View File

@@ -1,6 +1,15 @@
# Path to Z-Stack SDK
ZSTACK_DIR = ./include
# Include path for the Z-Stack SDK
# INCLUDE_DIRS = -I$(ZSTACK_DIR)/Components/hal/CC2530 \
# -I$(ZSTACK_DIR)/Components/zigbee
INCLUDE_DIRS = -I$(ZSTACK_DIR)
# Compiler settings
CC = msp430-elf-gcc # MSP430 compiler
CFLAGS = -Wall -Os # Enable all warnings, Optimize for size
# CFLAGS (C Compiler flags)
CFLAGS = $(INCLUDE_DIRS) -Wall -O2 # Enable all warnings, Optimize for size
LDFLAGS =
LIBS = -lZStack -lhal # ZStack for Zigbee communication, lhal for Hardware Abstraction Layer library