Support to specify build time OS target

Now run:

make PX4_TARGET_OS=nuttx

or

make PX4_TARGET_OS=linux

To test the linux build and make sure that the required directories
exist, run:

make linuxrun

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-03-25 10:55:05 -07:00
parent aedf6fe628
commit cf71db74d7
3 changed files with 16 additions and 4 deletions

View File

@@ -33,8 +33,11 @@
# Path and tool setup
#
#export PX4_TARGET_OS = nuttx
ifdef ($(PX4_TARGET_OS),nuttx)
export PX4_TARGET_OS = nuttx
else
export PX4_TARGET_OS = linux
endif
#
# Some useful paths.