mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
Make Diagnostic UAVObjects optional in OP and Sim_Posix (but enabled by default)
This commit is contained in:
parent
7395a369a9
commit
5ea35bb28c
@ -37,6 +37,9 @@ OUTDIR := $(TOP)/build/$(TARGET)
|
|||||||
# Set to YES to compile for debugging
|
# Set to YES to compile for debugging
|
||||||
DEBUG ?= YES
|
DEBUG ?= YES
|
||||||
|
|
||||||
|
# Include objects that are just nice information to show
|
||||||
|
DIAGNOSTICS ?= YES
|
||||||
|
|
||||||
# Set to YES to use the Servo output pins for debugging via scope or logic analyser
|
# Set to YES to use the Servo output pins for debugging via scope or logic analyser
|
||||||
ENABLE_DEBUG_PINS ?= NO
|
ENABLE_DEBUG_PINS ?= NO
|
||||||
|
|
||||||
@ -391,8 +394,9 @@ ifeq ($(DEBUG),YES)
|
|||||||
CFLAGS = -g$(DEBUGF) -DDEBUG
|
CFLAGS = -g$(DEBUGF) -DDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# OP has enough memory to always enable optional objects
|
ifeq ($(DIAGNOSTICS),YES)
|
||||||
CFLAGS += -DDIAGNOSTICS
|
CFLAGS = -DDIAGNOSTICS
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += -O$(OPT)
|
CFLAGS += -O$(OPT)
|
||||||
CFLAGS += -mcpu=$(MCU)
|
CFLAGS += -mcpu=$(MCU)
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
# Set to YES to compile for debugging
|
# Set to YES to compile for debugging
|
||||||
DEBUG ?= YES
|
DEBUG ?= YES
|
||||||
|
|
||||||
|
# Include objects that are just nice information to show
|
||||||
|
DIAGNOSTICS ?= YES
|
||||||
|
|
||||||
# Set to YES to use the Servo output pins for debugging via scope or logic analyser
|
# Set to YES to use the Servo output pins for debugging via scope or logic analyser
|
||||||
ENABLE_DEBUG_PINS ?= NO
|
ENABLE_DEBUG_PINS ?= NO
|
||||||
|
|
||||||
@ -311,6 +314,10 @@ ifeq ($(DEBUG),YES)
|
|||||||
CFLAGS = -g$(DEBUGF) -DDEBUG
|
CFLAGS = -g$(DEBUGF) -DDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DIAGNOSTICS),YES)
|
||||||
|
CFLAGS = -DDIAGNOSTICS
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += $(CFLAGS_UAVOBJECTS)
|
CFLAGS += $(CFLAGS_UAVOBJECTS)
|
||||||
CFLAGS += -DARCH_POSIX
|
CFLAGS += -DARCH_POSIX
|
||||||
CFLAGS += -O$(OPT)
|
CFLAGS += -O$(OPT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user