aboutsummaryrefslogtreecommitdiff
path: root/lib/efm32/tinygecko/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/efm32/tinygecko/Makefile')
-rw-r--r--lib/efm32/tinygecko/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efm32/tinygecko/Makefile b/lib/efm32/tinygecko/Makefile
index b785d4d..afe1e93 100644
--- a/lib/efm32/tinygecko/Makefile
+++ b/lib/efm32/tinygecko/Makefile
@@ -19,6 +19,7 @@
##
LIBNAME = libopencm3_efm32tinygecko
+FAMILY = TINYGECKO
PREFIX ?= arm-none-eabi
#PREFIX ?= arm-elf
@@ -26,7 +27,7 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
- -ffunction-sections -fdata-sections -MD -DSTM32F1
+ -ffunction-sections -fdata-sections -MD -D$(FAMILY)
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o devicerevision.o