build: add navio build target
This commit is contained in:
parent
e5c8a0af77
commit
2899e44c0c
@ -14,7 +14,7 @@ export LANG=C
|
|||||||
# Locate the sketch sources based on the initial Makefile's path
|
# Locate the sketch sources based on the initial Makefile's path
|
||||||
#
|
#
|
||||||
SRCROOT := $(realpath $(dir $(firstword $(MAKEFILE_LIST))))
|
SRCROOT := $(realpath $(dir $(firstword $(MAKEFILE_LIST))))
|
||||||
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
||||||
# Workaround a $(realpath ) bug on cygwin
|
# Workaround a $(realpath ) bug on cygwin
|
||||||
ifeq ($(SRCROOT),)
|
ifeq ($(SRCROOT),)
|
||||||
SRCROOT := $(shell cygpath -m ${CURDIR})
|
SRCROOT := $(shell cygpath -m ${CURDIR})
|
||||||
@ -48,7 +48,7 @@ else
|
|||||||
$(warning WARNING: sketchbook directory $(SKETCHBOOK) contains no libraries)
|
$(warning WARNING: sketchbook directory $(SKETCHBOOK) contains no libraries)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
|
||||||
# Convert cygwin path into a windows normal path
|
# Convert cygwin path into a windows normal path
|
||||||
SKETCHBOOK := $(shell cygpath ${SKETCHBOOK})
|
SKETCHBOOK := $(shell cygpath ${SKETCHBOOK})
|
||||||
endif
|
endif
|
||||||
@ -149,6 +149,11 @@ HAL_BOARD = HAL_BOARD_LINUX
|
|||||||
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_PXF
|
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_PXF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(findstring navio, $(MAKECMDGOALS)),)
|
||||||
|
HAL_BOARD = HAL_BOARD_LINUX
|
||||||
|
HAL_BOARD_SUBTYPE = HAL_BOARD_SUBTYPE_LINUX_NAVIO
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
||||||
HAL_BOARD = HAL_BOARD_VRBRAIN
|
HAL_BOARD = HAL_BOARD_VRBRAIN
|
||||||
endif
|
endif
|
||||||
@ -189,4 +194,3 @@ BOARD = mega
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -35,6 +35,10 @@ pxf: HAL_BOARD = HAL_BOARD_LINUX
|
|||||||
pxf: TOOLCHAIN = BBONE
|
pxf: TOOLCHAIN = BBONE
|
||||||
pxf: all
|
pxf: all
|
||||||
|
|
||||||
|
navio: HAL_BOARD = HAL_BOARD_LINUX
|
||||||
|
navio: TOOLCHAIN = RPI
|
||||||
|
navio: all
|
||||||
|
|
||||||
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
||||||
empty: TOOLCHAIN = AVR
|
empty: TOOLCHAIN = AVR
|
||||||
empty: all
|
empty: all
|
||||||
@ -48,7 +52,7 @@ empty: all
|
|||||||
|
|
||||||
# cope with copter and hil targets
|
# cope with copter and hil targets
|
||||||
FRAMES = quad tri hexa y6 octa octa-quad heli single obc
|
FRAMES = quad tri hexa y6 octa octa-quad heli single obc
|
||||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10 erle pxf
|
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10 erle pxf navio
|
||||||
|
|
||||||
define frame_template
|
define frame_template
|
||||||
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
||||||
@ -78,4 +82,3 @@ etags:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -fr $(BUILDROOT)
|
@rm -fr $(BUILDROOT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user