forked from Archive/PX4-Autopilot
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:
commit
8fa49d8ac5
|
@ -260,11 +260,11 @@ then
|
|||
#
|
||||
# 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
|
||||
set IO_FILE /etc/extras/px4io-v2_default.bin
|
||||
set IO_FILE /etc/extras/px4io-v2.bin
|
||||
else
|
||||
set IO_FILE /etc/extras/px4io-v1_default.bin
|
||||
set IO_FILE /etc/extras/px4io-v1.bin
|
||||
fi
|
||||
|
||||
if px4io checkcrc ${IO_FILE}
|
||||
|
|
|
@ -55,11 +55,11 @@ else
|
|||
echo "[param] FAILED loading $PARAM_FILE"
|
||||
fi
|
||||
|
||||
if [ -f /etc/extras/px4io-v2_default.bin ]
|
||||
if [ -f /etc/extras/px4io-v2.bin ]
|
||||
then
|
||||
set io_file /etc/extras/px4io-v2_default.bin
|
||||
set io_file /etc/extras/px4io-v2.bin
|
||||
else
|
||||
set io_file /etc/extras/px4io-v1_default.bin
|
||||
set io_file /etc/extras/px4io-v1.bin
|
||||
fi
|
||||
|
||||
if px4io start
|
||||
|
|
|
@ -3468,12 +3468,12 @@ px4io_main(int argc, char *argv[])
|
|||
|
||||
} else {
|
||||
#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[2] = "/fs/microsd/px4io.bin";
|
||||
fn[3] = nullptr;
|
||||
#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[2] = "/fs/microsd/px4io.bin";
|
||||
fn[3] = nullptr;
|
||||
|
|
|
@ -7,7 +7,7 @@ px4_nuttx_generate_builtin_commands(
|
|||
|
||||
px4_nuttx_add_romfs(OUT romfs
|
||||
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)
|
||||
|
@ -81,21 +81,21 @@ if(NOT ${BOARD} STREQUAL "sim")
|
|||
|
||||
add_custom_target(debug_io
|
||||
COMMAND ${GDB}
|
||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}
|
||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}
|
||||
DEPENDS firmware_nuttx
|
||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||
)
|
||||
|
||||
add_custom_target(debug_io_tui
|
||||
COMMAND ${GDBTUI}
|
||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}_${LABEL}
|
||||
${CMAKE_BINARY_DIR}/src/modules/px4iofirmware/${config_io_board}
|
||||
DEPENDS firmware_nuttx
|
||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||
)
|
||||
|
||||
add_custom_target(debug_io_ddd
|
||||
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
|
||||
${CMAKE_CURRENT_BINARY_DIR}/.gdbinit
|
||||
)
|
||||
|
|
|
@ -103,7 +103,7 @@ elseif(${config_io_board} STREQUAL "px4io-v2")
|
|||
)
|
||||
endif()
|
||||
|
||||
set(fw_io_name ${config_io_board}_${LABEL})
|
||||
set(fw_io_name ${config_io_board})
|
||||
|
||||
add_executable(${fw_io_name}
|
||||
${srcs})
|
||||
|
|
Loading…
Reference in New Issue