Beginning separation of debug symbols and optimization selections

This commit is contained in:
Gregory Nutt
2013-12-20 11:43:02 -06:00
parent 5cbfde94ab
commit 8be24a9c50
11 changed files with 88 additions and 22 deletions
+8 -2
View File
@@ -118,9 +118,15 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) $(ARCHASMWARNINGS)
# Compiler definitions
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = -debug -reduceopt
ARCHOPTIMIZATION = -debug
else
ARCHOPTIMIZATION = -nodebug -optsize
ARCHOPTIMIZATION = -nodebug
endif
ifeq ($(CONFIG_DEBUG_NOOPT),y)
ARCHOPTIMIZATION += -reduceopt
else
ARCHOPTIMIZATION += -optsize
endif
ARCHCPUFLAGS = -chartype:S -promote -cpu:$(ARCHCPU) -NOgenprintf -NOmodsect \