summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-09-14 18:01:52 -0400
committerWilliam D. Jones <[email protected]>2019-09-14 18:02:17 -0400
commit6280e4e7cbad956aab1a2a519d93620c3990eedc (patch)
tree011d99e7b56f9a5c4935747429fcfb74e8bd7606 /examples/make.mk
parentd7137e36ca3681958603f610a16b68434baad474 (diff)
msp430f5529: Add empty msp_exp430f5529lp BSP and DCD.
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