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

@@ -3,7 +3,7 @@
if [ ! -c /tmp/ttyS0 ] || [ ! -c /tmp/ttyS1 ]
then
echo "Need to create /tmp/ttyS[01]"
echo "socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
echo "sudo socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1"
exit 1
fi
@@ -12,6 +12,15 @@ if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ]
echo "Need to create/mount writable /fs/microsd"
echo "sudo mkdir -p /fs/msdcard"
echo "sudo chmod 777 /fs/msdcard"
exit 1
fi
Build/linux_default.build/mainapp
if [ ! -d /eeprom ] && [ ! -w /eeprom ]
then
echo "Need to create/mount writable /eeprom"
echo "sudo mkdir -p /eeprom"
echo "sudo chmod 777 /eeprom"
exit 1
fi
Build/linux_default.build/mainapp linux-config/linuxtest/init/rc.S