mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Added CODE_SOURCERY switch to makefile to choose if it is used or not.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@143 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
7d8dbc5deb
commit
2234d0a0bf
@ -26,11 +26,17 @@
|
||||
# Set developer code and compile options
|
||||
# Set to YES for debugging
|
||||
DEBUG = YES
|
||||
# Set to YES when using Code Sourcery toolchain
|
||||
CODE_SOURCERY=NO
|
||||
|
||||
# Toolchain prefix (i.e arm-elf- -> arm-elf-gcc.exe)
|
||||
TCHAIN_PREFIX = arm-none-eabi-
|
||||
#REMOVE_CMD=rm
|
||||
|
||||
ifeq ($(CODE_SOURCERY), YES)
|
||||
REMOVE_CMD=cs-rm
|
||||
else
|
||||
REMOVE_CMD=rm
|
||||
endif
|
||||
|
||||
FLASH_TOOL = OPENOCD
|
||||
|
||||
@ -273,7 +279,9 @@ CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) -I.
|
||||
|
||||
CFLAGS += -mapcs-frame
|
||||
CFLAGS += -fomit-frame-pointer
|
||||
#CFLAGS += -fpromote-loop-indices # it is a Sourcery G++ Lite specific option
|
||||
ifeq ($(CODE_SOURCERY), YES)
|
||||
CFLAGS += -fpromote-loop-indices
|
||||
endif
|
||||
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wa,-adhlns=$(addprefix $(OUTDIR)/, $(notdir $(addsuffix .lst, $(basename $<))))
|
||||
|
Loading…
Reference in New Issue
Block a user