px4: fixed passing of EXTRAFLAGS for ArduCopter frame type

This commit is contained in:
Andrew Tridgell 2013-04-17 13:19:45 +10:00
parent 636573f0fd
commit 0af84177da
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: