aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-02 23:54:43 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-03 00:14:43 -0800
commitc5d73925fcc06ec03fe21b290e2783e3e07ba9f1 (patch)
tree55189ea357846b3af921bfca24fdaa15336b024a /Makefile
parent2b6d1cd0fa25b1ea2a8068182d9d14ec7e70ccfa (diff)
downloadlibrambutan-c5d73925fcc06ec03fe21b290e2783e3e07ba9f1.tar.gz
librambutan-c5d73925fcc06ec03fe21b290e2783e3e07ba9f1.zip
stm32f4: series-specific linker flags
Also refactors STM32F2-F4 linker files into sub-series directories.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c4ffe26..092ebb4 100644
--- a/Makefile
+++ b/Makefile
@@ -66,10 +66,10 @@ GLOBAL_CFLAGS := -Os -g3 -gdwarf-2 -nostdlib \
-DBOOTLOADER_$(BOOTLOADER)
GLOBAL_CXXFLAGS := -fno-rtti -fno-exceptions -Wall $(TARGET_FLAGS)
GLOBAL_ASFLAGS := -x assembler-with-cpp $(TARGET_FLAGS)
-LDFLAGS = $(TARGET_LDFLAGS) $(TOOLCHAIN_LDFLAGS) -mcpu=cortex-m3 -mthumb \
- -Xlinker --gc-sections \
- -Xassembler --march=armv7-m -Wall
-# -Xlinker --print-gc-sections \
+LDFLAGS = $(TARGET_LDFLAGS) $(TOOLCHAIN_LDFLAGS)
+LDFLAGS += -Xlinker --gc-sections
+#LDFLAGS += -Xlinker --print-gc-sections
+LDFLAGS += -Xassembler -Wall
##
## Set all submodules here