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:
parent
1f3a051e7b
commit
4c05848734
@ -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
6
mk/board_linux.mk
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user