px4: fixed passing of EXTRAFLAGS for ArduCopter frame type
This commit is contained in:
parent
636573f0fd
commit
0af84177da
@ -167,7 +167,7 @@ PARENT_MAKEFILE := $(lastword $(filter-out $(THIS_MAKEFILE),$(MAKEFILE_LIST)))
|
||||
include $(APPDIR)/Make.defs
|
||||
|
||||
# this allows us to generate the main function
|
||||
SKETCHFLAGS = -DCONFIG_HAL_BOARD=HAL_BOARD_PX4 -DSKETCHNAME=\"$(SKETCH)\" -DSKETCH_MAIN=$(SKETCH)_main
|
||||
SKETCHFLAGS = -DCONFIG_HAL_BOARD=HAL_BOARD_PX4 -DSKETCHNAME=\"$(SKETCH)\" -DSKETCH_MAIN=$(SKETCH)_main $(EXTRAFLAGS)
|
||||
CFLAGS += $(SKETCHFLAGS)
|
||||
CXXFLAGS += $(SKETCHFLAGS)
|
||||
|
||||
|
@ -8,7 +8,7 @@ PX4_EXTERNAL_SCRIPTS = $(HAL_PX4_DIR)/scripts/rc.APM~init.d/rc.APM
|
||||
|
||||
# we use CURDIR instead of PWD to avoid a problem with MINGW32 on Windows
|
||||
PX4_EXTERNAL = EXTERNAL_APPS=$(CURDIR) EXTERNAL_SCRIPTS=$(PX4_EXTERNAL_SCRIPTS)
|
||||
PX4_MAKE = make -C $(PX4_ROOT) $(PX4_EXTERNAL) CONFIG_APM=y
|
||||
PX4_MAKE = make -C $(PX4_ROOT) $(PX4_EXTERNAL) CONFIG_APM=y EXTRAFLAGS=$(EXTRAFLAGS)
|
||||
|
||||
|
||||
px4:
|
||||
|
Loading…
Reference in New Issue
Block a user