mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-03 11:24:10 +01:00
Revert "ahrs: No longer support -O0 since it doesn't fit"
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1634 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
9c94db6dd7
commit
7886a617dc
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
# Set developer code and compile options
|
# Set developer code and compile options
|
||||||
# Set to YES for debugging
|
# Set to YES for debugging
|
||||||
DEBUG ?= YES
|
DEBUG ?= NO
|
||||||
USE_BOOTLOADER ?= NO
|
USE_BOOTLOADER ?= NO
|
||||||
|
|
||||||
# Set to YES when using Code Sourcery toolchain
|
# Set to YES when using Code Sourcery toolchain
|
||||||
@ -192,7 +192,12 @@ LINKERSCRIPTPATH = $(PIOSSTM32F10X)
|
|||||||
# 0 = turn off optimization. s = optimize for size.
|
# 0 = turn off optimization. s = optimize for size.
|
||||||
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
|
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
|
||||||
|
|
||||||
|
ifeq ($(DEBUG),YES)
|
||||||
|
CFLAGS += -O0
|
||||||
|
CFLAGS += -DGENERAL_COV
|
||||||
|
else
|
||||||
CFLAGS += -Os
|
CFLAGS += -Os
|
||||||
|
endif
|
||||||
|
|
||||||
# Output format. (can be ihex or binary or both)
|
# Output format. (can be ihex or binary or both)
|
||||||
# binary to create a load-image in raw-binary format i.e. for SAM-BA,
|
# binary to create a load-image in raw-binary format i.e. for SAM-BA,
|
||||||
|
Loading…
Reference in New Issue
Block a user