build: added support for developer.mk (at request of David)
This commit is contained in:
parent
c4c97b14d3
commit
cfa63254b6
@ -58,6 +58,11 @@ $(info Reading $(SKETCHBOOK)/config.mk)
|
||||
include $(SKETCHBOOK)/config.mk
|
||||
endif
|
||||
|
||||
ifneq ($(wildcard $(SKETCHBOOK)/developer.mk),)
|
||||
$(info Reading $(SKETCHBOOK)/developer.mk)
|
||||
include $(SKETCHBOOK)/developer.mk
|
||||
endif
|
||||
|
||||
#
|
||||
# Work out the sketch name from the name of the source directory.
|
||||
#
|
||||
|
@ -12,11 +12,15 @@ ifneq ($(UAVCAN_DIR),)
|
||||
$(error UAVCAN_DIR found in config.mk - Please see http://dev.ardupilot.com/wiki/git-submodules/)
|
||||
endif
|
||||
|
||||
# these can be overridden in developer.mk
|
||||
PX4FIRMWARE_DIRECTORY ?= $(SKETCHBOOK)/modules/PX4Firmware
|
||||
PX4NUTTX_DIRECTORY ?= $(SKETCHBOOK)/modules/PX4Firmware
|
||||
UAVCAN_DIRECTORY ?= $(SKETCHBOOK)/modules/uavcan
|
||||
|
||||
PX4_ROOT := $(shell cd $(SKETCHBOOK)/modules/PX4Firmware && pwd)
|
||||
NUTTX_ROOT := $(shell cd $(SKETCHBOOK)/modules/PX4NuttX && pwd)
|
||||
PX4_ROOT := $(shell cd $(PX4FIRMWARE_DIRECTORY) && pwd)
|
||||
NUTTX_ROOT := $(shell cd $(PX4NUTTX_DIRECTORY) && pwd)
|
||||
NUTTX_SRC := $(NUTTX_ROOT)/nuttx/
|
||||
UAVCAN_DIR=$(shell cd $(SKETCHBOOK)/modules/uavcan && pwd)/
|
||||
UAVCAN_DIR=$(shell cd $(UAVCAN_DIRECTORY) && pwd)/
|
||||
|
||||
# warn if user has old PX4Firmware or PX4NuttX trees
|
||||
ifneq ($(wildcard $(SKETCHBOOK)/../PX4Firmware),)
|
||||
|
Loading…
Reference in New Issue
Block a user