mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-15 12:23:58 -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
|
include $(MK_DIR)/board_avr_sitl.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HAL_BOARD),HAL_BOARD_LINUX)
|
||||||
|
include $(MK_DIR)/board_linux.mk
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
ifeq ($(HAL_BOARD),HAL_BOARD_PX4)
|
||||||
include $(MK_DIR)/board_px4.mk
|
include $(MK_DIR)/board_px4.mk
|
||||||
endif
|
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
|
HAL_BOARD = HAL_BOARD_AVR_SITL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(findstring linux, $(MAKECMDGOALS)),)
|
||||||
|
HAL_BOARD = HAL_BOARD_LINUX
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
ifneq ($(findstring vrbrain, $(MAKECMDGOALS)),)
|
||||||
HAL_BOARD = HAL_BOARD_VRBRAIN
|
HAL_BOARD = HAL_BOARD_VRBRAIN
|
||||||
endif
|
endif
|
||||||
|
@ -21,6 +21,10 @@ flymaple: HAL_BOARD = HAL_BOARD_FLYMAPLE
|
|||||||
flymaple: TOOLCHAIN = ARM
|
flymaple: TOOLCHAIN = ARM
|
||||||
flymaple: all
|
flymaple: all
|
||||||
|
|
||||||
|
linux: HAL_BOARD = HAL_BOARD_LINUX
|
||||||
|
linux: TOOLCHAIN = NATIVE
|
||||||
|
linux: all
|
||||||
|
|
||||||
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
empty: HAL_BOARD = HAL_BOARD_EMPTY
|
||||||
empty: TOOLCHAIN = AVR
|
empty: TOOLCHAIN = AVR
|
||||||
empty: all
|
empty: all
|
||||||
|
Loading…
Reference in New Issue
Block a user