From 26de516e30d82a143195038477fde770855f1fb4 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 19 Nov 2011 16:21:52 +0100 Subject: Compiling for cortex-m4. --- SConstruct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index d5544c1..b596946 100644 --- a/SConstruct +++ b/SConstruct @@ -6,14 +6,14 @@ env = Environment( CC = 'arm-none-eabi-gcc', CXX = 'arm-none-eabi-g++', AS = 'arm-none-eabi-gcc', - CCFLAGS = '-O2 -Wall -ggdb -mcpu=cortex-m3 -mthumb -ffunction-sections', + CCFLAGS = '-O2 -Wall -ggdb -mcpu=cortex-m4 -mthumb -mhard-float -ffunction-sections', CXXFLAGS = '-fno-exceptions -fno-rtti', - ASFLAGS = '-c -x assembler-with-cpp -mcpu=cortex-m3 -mthumb', + ASFLAGS = '-c -x assembler-with-cpp -mcpu=cortex-m4 -mthumb -mhard-float', #CPPDEFINES = [], LINK = 'arm-none-eabi-gcc', - LINKFLAGS = '-Wall -mcpu=cortex-m3 -mthumb -nostartfiles -Wl,-Tsuzumebachi.ld', # -Wl,--gc-sections + LINKFLAGS = '-Wall -mcpu=cortex-m4 -mthumb -mhard-float -nostartfiles -Wl,-Tsuzumebachi.ld', # -Wl,--gc-sections AR = 'arm-none-eabi-ar', RANLIB = 'arm-none-eabi-ranlib', -- cgit v1.2.3