forked from Archive/PX4-Autopilot
Master additional targets (#5548)
* Allow Niga to be disabled from command line * Add a build all nuttx targets
This commit is contained in:
parent
c4eabbd083
commit
0eca86443d
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue