summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/make.mk b/examples/make.mk
index b0aa5659e..f2428f5e3 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -2,8 +2,12 @@
# Common make definition for all examples
#
-# Compiler
-CROSS_COMPILE = arm-none-eabi-
+# Compiler
+ifeq ($(BOARD), msp_exp430f5529lp)
+ CROSS_COMPILE = msp430-elf-
+else
+ CROSS_COMPILE = arm-none-eabi-
+endif
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
OBJCOPY = $(CROSS_COMPILE)objcopy
@@ -67,10 +71,13 @@ CFLAGS += \
-Wno-deprecated-declarations \
-Wnested-externs \
-Wunreachable-code \
- -Wno-error=lto-type-mismatch \
-ffunction-sections \
-fdata-sections
+ifneq ($(BOARD), msp_exp430f5529lp)
+ CFLAGS += -Wno-error=lto-type-mismatch
+endif
+
# This causes lots of warning with nrf5x build due to nrfx code
# CFLAGS += -Wcast-align