Master additional targets (#5548)

* Allow Niga to be disabled from command line

* Add a build all nuttx targets
This commit is contained in:
David Sidrane 2016-09-26 10:48:37 -10:00 committed by Lorenz Meier
parent c4eabbd083
commit 0eca86443d
1 changed files with 4 additions and 0 deletions

View File

@ -88,7 +88,9 @@ FIRST_ARG := $(firstword $(MAKECMDGOALS))
ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
j ?= 4 j ?= 4
ifndef NO_NINJA_BUILD
NINJA_BUILD := $(shell ninja --version 2>/dev/null) NINJA_BUILD := $(shell ninja --version 2>/dev/null)
endif
ifdef NINJA_BUILD ifdef NINJA_BUILD
PX4_CMAKE_GENERATOR ?= "Ninja" PX4_CMAKE_GENERATOR ?= "Ninja"
PX4_MAKE = ninja PX4_MAKE = ninja
@ -157,6 +159,8 @@ $(ALL_CONFIG_TARGETS):
$(NUTTX_CONFIG_TARGETS): $(NUTTX_CONFIG_TARGETS):
$(call cmake-build,nuttx_$@) $(call cmake-build,nuttx_$@)
all_nuttx_targets: $(NUTTX_CONFIG_TARGETS)
posix: posix_sitl_default posix: posix_sitl_default
broadcast: posix_sitl_broadcast broadcast: posix_sitl_broadcast