Skip to content

Commit

Permalink
efm32 example: enhanced makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Feb 27, 2012
1 parent f52b1a5 commit 09523e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/efm32/tinygecko/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ GDB = $(PREFIX)-gdb
#TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX)
TOOLCHAIN_DIR = ../../../../..
CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
-fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD
-fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD\
-D$(FAMILY)
LDSCRIPT ?= ${TOOLCHAIN_DIR}/lib/efm32/tinygecko/$(MCU).ld
LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib/efm32/tinygecko \
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \
Expand Down
6 changes: 2 additions & 4 deletions examples/efm32/tinygecko/efm32-tg-stk3300/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
##

MCU = EFM32TG840F32
FAMILY = TINYGECKO

# Linker scripts are always relative to the current directory. This file is
# intended for inclusion from example subdirectories, so the Makefile.include
# meant here would be called ../Makefile.include relative to here.
include ../../Makefile.include
include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.include

0 comments on commit 09523e8

Please sign in to comment.