build: added -obc supplementary target
This commit is contained in:
parent
1fe7b2fe18
commit
fb70ecb9d4
@ -35,6 +35,9 @@ empty: all
|
||||
%-hil: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
||||
%-hilsensors: EXTRAFLAGS += "-DHIL_MODE=HIL_MODE_SENSORS "
|
||||
|
||||
# cope with OBC targets
|
||||
%-obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
||||
|
||||
# cope with copter and hil targets
|
||||
FRAMES = quad tri hexa y6 octa octa-quad heli single
|
||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux
|
||||
@ -45,6 +48,7 @@ $(1)-$(2) : $(1)
|
||||
$(1)-$(2)-hil : $(1)-$(2)
|
||||
$(1)-$(2)-hilsensors : $(1)-$(2)
|
||||
$(1)-hil : $(1)
|
||||
$(1)-obc : $(1)
|
||||
$(1)-hilsensors : $(1)
|
||||
endef
|
||||
|
||||
@ -54,15 +58,6 @@ $(foreach board,$(BOARDS),$(foreach frame,$(FRAMES),$(eval $(call frame_template
|
||||
apm2beta: EXTRAFLAGS += "-DAPM2_BETA_HARDWARE "
|
||||
apm2beta: apm2
|
||||
|
||||
obc-sitl: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
||||
obc-sitl: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
||||
obc-sitl: sitl
|
||||
|
||||
obc: EXTRAFLAGS += "-DOBC_FAILSAFE=ENABLED "
|
||||
obc: EXTRAFLAGS += "-DTELEMETRY_UART2=ENABLED "
|
||||
obc: EXTRAFLAGS += "-DSERIAL_BUFSIZE=512 "
|
||||
obc: apm2
|
||||
|
||||
sitl-mount: EXTRAFLAGS += "-DMOUNT=ENABLED"
|
||||
sitl-mount: sitl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user