mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:43:33 +08:00
Added posix-arm target and refactored toolchain_* files
The toolchain_* files are target OS specific so they were moved to the target OS subdir. The gcc_version.* files are only cleared once per make instantiation so a build that creates multiple HW targets will try to link with an incompatible .o file (i.e. x86 build linking ARM .o). I created posix-arm as a separate target to fix this problem. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
# Top-level Makefile for building PX4 firmware images.
|
||||
#
|
||||
|
||||
TARGETS := nuttx posix qurt
|
||||
TARGETS := nuttx posix posix-arm qurt
|
||||
EXPLICIT_TARGET := $(filter $(TARGETS),$(MAKECMDGOALS))
|
||||
ifneq ($(EXPLICIT_TARGET),)
|
||||
export PX4_TARGET_OS=$(EXPLICIT_TARGET)
|
||||
@@ -241,6 +241,9 @@ endif
|
||||
ifeq ($(PX4_TARGET_OS),posix)
|
||||
include $(PX4_BASE)makefiles/firmware_posix.mk
|
||||
endif
|
||||
ifeq ($(PX4_TARGET_OS),posix-arm)
|
||||
include $(PX4_BASE)makefiles/firmware_posix.mk
|
||||
endif
|
||||
ifeq ($(PX4_TARGET_OS),qurt)
|
||||
include $(PX4_BASE)makefiles/firmware_qurt.mk
|
||||
endif
|
||||
@@ -285,7 +288,7 @@ testbuild:
|
||||
$(Q) (cd $(PX4_BASE) && $(MAKE) distclean && $(MAKE) archives && $(MAKE) -j8)
|
||||
$(Q) (zip -r Firmware.zip $(PX4_BASE)/Images)
|
||||
|
||||
nuttx posix qurt:
|
||||
nuttx posix posix-arm qurt:
|
||||
ifeq ($(GOALS),)
|
||||
make PX4_TARGET_OS=$@ $(GOALS)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user