5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-02-13 03:13:57 -04:00

build: added Linux targets

This commit is contained in:
Andrew Tridgell 2013-09-22 16:04:08 +10:00
parent 1f3a051e7b
commit 4c05848734
4 changed files with 18 additions and 0 deletions

View File

@ -34,6 +34,10 @@ ifeq ($(HAL_BOARD),HAL_BOARD_AVR_SITL)
include $(MK_DIR)/board_avr_sitl.mk
endif
ifeq ($(HAL_BOARD),HAL_BOARD_LINUX)
include $(MK_DIR)/board_linux.mk
endif
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
include $(MK_DIR)/board_px4.mk
endif

6
mk/board_linux.mk Normal file
View File

@ -0,0 +1,6 @@
TOOLCHAIN = NATIVE
include $(MK_DIR)/find_tools.mk
# Linux build is just the same as SITL for now
include $(MK_DIR)/board_avr_sitl.mk

View File

@ -111,6 +111,10 @@ ifneq ($(findstring sitl, $(MAKECMDGOALS)),)
HAL_BOARD = HAL_BOARD_AVR_SITL
endif
ifneq ($(findstring linux, $(MAKECMDGOALS)),)
HAL_BOARD = HAL_BOARD_LINUX
endif
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
HAL_BOARD = HAL_BOARD_VRBRAIN
endif

View File

@ -21,6 +21,10 @@ flymaple: HAL_BOARD = HAL_BOARD_FLYMAPLE
flymaple: TOOLCHAIN = ARM
flymaple: all
linux: HAL_BOARD = HAL_BOARD_LINUX
linux: TOOLCHAIN = NATIVE
linux: all
empty: HAL_BOARD = HAL_BOARD_EMPTY
empty: TOOLCHAIN = AVR
empty: all