mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
build: added XXX-debug option to builds for debug build
This commit is contained in:
parent
db871cc581
commit
5f963cbf82
@ -3,6 +3,5 @@ TOOLCHAIN = NATIVE
|
||||
include $(MK_DIR)/find_tools.mk
|
||||
|
||||
# Linux build is just the same as SITL for now
|
||||
OPTFLAGS = -O3
|
||||
LIBS = -lm -lpthread -lrt
|
||||
include $(MK_DIR)/board_native.mk
|
||||
|
@ -64,6 +64,9 @@ empty: all
|
||||
# cope with OBC targets
|
||||
%-obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
||||
|
||||
# support debug build
|
||||
%-debug: OPTFLAGS = -g -O0
|
||||
|
||||
# cope with -nologging
|
||||
%-nologging: EXTRAFLAGS += "-DLOGGING_ENABLED=DISABLED "
|
||||
|
||||
@ -75,10 +78,12 @@ define frame_template
|
||||
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
||||
$(1)-$(2) : $(1)
|
||||
$(1)-$(2)-hil : $(1)-$(2)
|
||||
$(1)-$(2)-debug : $(1)-$(2)
|
||||
$(1)-$(2)-hilsensors : $(1)-$(2)
|
||||
$(1)-$(2)-upload : $(1)-$(2)
|
||||
$(1)-$(2)-upload : $(1)-upload
|
||||
$(1)-hil : $(1)
|
||||
$(1)-debug : $(1)
|
||||
$(1)-hilsensors : $(1)
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user