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
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:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user