build: added bbone as build target
This commit is contained in:
parent
a224d8c3f9
commit
09e9074cb2
@ -142,6 +142,10 @@ ifneq ($(findstring erle, $(MAKECMDGOALS)),)
|
||||
HAL_BOARD = HAL_BOARD_ERLE
|
||||
endif
|
||||
|
||||
ifneq ($(findstring bbone, $(MAKECMDGOALS)),)
|
||||
HAL_BOARD = HAL_BOARD_LINUX
|
||||
endif
|
||||
|
||||
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
||||
HAL_BOARD = HAL_BOARD_VRBRAIN
|
||||
endif
|
||||
|
@ -55,6 +55,15 @@ ARM_LD := $(call FIND_TOOL,arm-none-eabi-g++)
|
||||
ARM_GDB := $(call FIND_TOOL,arm-none-eabi-gdb)
|
||||
ARM_OBJCOPY := $(call FIND_TOOL,arm-none-eabi-objcopy)
|
||||
|
||||
# toolchains for beagleboneblack
|
||||
BBONE_CXX := arm-linux-gnueabihf-g++-4.7
|
||||
BBONE_CC := arm-linux-gnueabihf-gcc-4.7
|
||||
BBONE_AS := arm-linux-gnueabihf-gcc-4.7
|
||||
BBONE_AR := ar
|
||||
BBONE_LD := arm-linux-gnueabihf-g++-4.7
|
||||
BBONE_GDB := gdb
|
||||
BBONE_OBJCOPY := objcopy
|
||||
|
||||
CXX = $($(TOOLCHAIN)_CXX)
|
||||
CC = $($(TOOLCHAIN)_CC)
|
||||
AS = $($(TOOLCHAIN)_AS)
|
||||
|
@ -31,6 +31,10 @@ erle: HAL_BOARD = HAL_BOARD_ERLE
|
||||
erle: TOOLCHAIN = NATIVE
|
||||
erle: all
|
||||
|
||||
bbone: HAL_BOARD = HAL_BOARD_LINUX
|
||||
bbone: TOOLCHAIN = BBONE
|
||||
bbone: all
|
||||
|
||||
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
||||
empty: TOOLCHAIN = AVR
|
||||
empty: all
|
||||
@ -44,7 +48,7 @@ empty: all
|
||||
|
||||
# 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 vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10 erle
|
||||
BOARDS = apm1 apm2 apm2beta apm1-1280 px4 px4-v1 px4-v2 sitl flymaple bbone linux vrbrain vrbrain-v40 vrbrain-v45 vrbrainv-50 vrbrain-v51 vrubrain-v51 vrhero-v10 erle
|
||||
|
||||
define frame_template
|
||||
$(1)-$(2) : EXTRAFLAGS += "-DFRAME_CONFIG=$(shell echo $(2) | tr a-z A-Z | sed s/-/_/g)_FRAME "
|
||||
|
Loading…
Reference in New Issue
Block a user