mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
Merge pull request #3033 from dronecrew/px4io-fw-rename
Firmware rename for px4io to avoid using board label in name.
This commit is contained in:
@@ -260,11 +260,11 @@ then
|
|||||||
#
|
#
|
||||||
# Check if PX4IO present and update firmware if needed
|
# Check if PX4IO present and update firmware if needed
|
||||||
#
|
#
|
||||||
if [ -f /etc/extras/px4io-v2_default.bin ]
|
if [ -f /etc/extras/px4io-v2.bin ]
|
||||||
then
|
then
|
||||||
set IO_FILE /etc/extras/px4io-v2_default.bin
|
set IO_FILE /etc/extras/px4io-v2.bin
|
||||||
else
|
else
|
||||||
set IO_FILE /etc/extras/px4io-v1_default.bin
|
set IO_FILE /etc/extras/px4io-v1.bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if px4io checkcrc ${IO_FILE}
|
if px4io checkcrc ${IO_FILE}
|
||||||
|
|||||||
@@ -55,11 +55,11 @@ else
|
|||||||
echo "[param] FAILED loading $PARAM_FILE"
|
echo "[param] FAILED loading $PARAM_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/extras/px4io-v2_default.bin ]
|
if [ -f /etc/extras/px4io-v2.bin ]
|
||||||
then
|
then
|
||||||
set io_file /etc/extras/px4io-v2_default.bin
|
set io_file /etc/extras/px4io-v2.bin
|
||||||
else
|
else
|
||||||
set io_file /etc/extras/px4io-v1_default.bin
|
set io_file /etc/extras/px4io-v1.bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if px4io start
|
if px4io start
|
||||||
|
|||||||
@@ -3468,12 +3468,12 @@ px4io_main(int argc, char *argv[])
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V1)
|
#if defined(CONFIG_ARCH_BOARD_PX4FMU_V1)
|
||||||
fn[0] = "/etc/extras/px4io-v1_default.bin";
|
fn[0] = "/etc/extras/px4io-v1.bin";
|
||||||
fn[1] = "/fs/microsd/px4io1.bin";
|
fn[1] = "/fs/microsd/px4io1.bin";
|
||||||
fn[2] = "/fs/microsd/px4io.bin";
|
fn[2] = "/fs/microsd/px4io.bin";
|
||||||
fn[3] = nullptr;
|
fn[3] = nullptr;
|
||||||
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V2)
|
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V2)
|
||||||
fn[0] = "/etc/extras/px4io-v2_default.bin";
|
fn[0] = "/etc/extras/px4io-v2.bin";
|
||||||
fn[1] = "/fs/microsd/px4io2.bin";
|
fn[1] = "/fs/microsd/px4io2.bin";
|
||||||
fn[2] = "/fs/microsd/px4io.bin";
|
fn[2] = "/fs/microsd/px4io.bin";
|
||||||
fn[3] = nullptr;
|
fn[3] = nullptr;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ px4_nuttx_generate_builtin_commands(
|
|||||||
|
|
||||||
px4_nuttx_add_romfs(OUT romfs
|
px4_nuttx_add_romfs(OUT romfs
|
||||||
ROOT ROMFS/px4fmu_common
|
ROOT ROMFS/px4fmu_common
|
||||||
EXTRAS ${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}.bin
|
EXTRAS ${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}.bin
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(romfs fw_io)
|
add_dependencies(romfs fw_io)
|
||||||
@@ -81,21 +81,21 @@ if(NOT ${BOARD} STREQUAL "sim")
|
|||||||
|
|
||||||
add_custom_target(debug_io
|
add_custom_target(debug_io
|
||||||
COMMAND ${GDB}
|
COMMAND ${GDB}
|
||||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}
|
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}
|
||||||
DEPENDS firmware_nuttx
|
DEPENDS firmware_nuttx
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(debug_io_tui
|
add_custom_target(debug_io_tui
|
||||||
COMMAND ${GDBTUI}
|
COMMAND ${GDBTUI}
|
||||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}
|
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}
|
||||||
DEPENDS firmware_nuttx
|
DEPENDS firmware_nuttx
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(debug_io_ddd
|
add_custom_target(debug_io_ddd
|
||||||
COMMAND ${DDD} --debugger ${GDB}
|
COMMAND ${DDD} --debugger ${GDB}
|
||||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}
|
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}
|
||||||
DEPENDS firmware_nuttx
|
DEPENDS firmware_nuttx
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ elseif(${config_io_board} STREQUAL "px4io-v2")
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(fw_io_name ${config_io_board}_${LABEL})
|
set(fw_io_name ${config_io_board})
|
||||||
|
|
||||||
add_executable(${fw_io_name}
|
add_executable(${fw_io_name}
|
||||||
${srcs})
|
${srcs})
|
||||||
|
|||||||
Reference in New Issue
Block a user