forked from Archive/PX4-Autopilot
16 lines
292 B
Bash
Executable File
16 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd build_posix_sitl_simple/src/firmware/posix
|
|
mkdir -p rootfs/fs/microsd
|
|
mkdir -p rootfs/eeprom
|
|
touch rootfs/eeprom/parameters
|
|
if [ "$2" == "lldb" ]
|
|
then
|
|
lldb -- mainapp ../../../../$1
|
|
elif [ "$2" == "gdb" ]
|
|
then
|
|
gdb -- mainapp ../../../../$1
|
|
else
|
|
./mainapp ../../../../$1
|
|
fi
|