mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 05:23:34 +08:00
cmake: Fix for posix sitl.
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
cp Tools/posix_lldbinit build_posix_sitl_simple/src/firmware/posix/.lldbinit
|
||||
cp Tools/posix.gdbinit build_posix_sitl_simple/src/firmware/posix/.gdbinit
|
||||
cd build_posix_sitl_simple/src/firmware/posix
|
||||
mkdir -p rootfs/fs/microsd
|
||||
mkdir -p rootfs/eeprom
|
||||
@@ -9,7 +10,7 @@ then
|
||||
lldb -- mainapp ../../../../$1
|
||||
elif [ "$2" == "gdb" ]
|
||||
then
|
||||
gdb -- mainapp ../../../../$1
|
||||
gdb --args mainapp ../../../../$1
|
||||
else
|
||||
./mainapp ../../../../$1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user