diff --git a/platforms/nuttx/NuttX/tools/kconfig-conf b/platforms/nuttx/NuttX/tools/kconfig-conf index 1ec40c570e2..1eba34058c9 100755 --- a/platforms/nuttx/NuttX/tools/kconfig-conf +++ b/platforms/nuttx/NuttX/tools/kconfig-conf @@ -6,8 +6,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" export APPSDIR="`pwd`/../apps" export CONFIG_ARCH_BOARD_CUSTOM=y +if [ "command -v python3" ]; then + PYTHON_EXECUTABLE=python3 +else + PYTHON_EXECUTABLE=python +fi + if [ "${1}" = "--olddefconfig" ]; then - PYTHONPATH=${DIR} python ${DIR}/olddefconfig.py > /dev/null + PYTHONPATH=${DIR} ${PYTHON_EXECUTABLE} ${DIR}/olddefconfig.py > /dev/null else echo "ERROR: ${@} unsupported" exit 1 diff --git a/src/drivers/uavcan/CMakeLists.txt b/src/drivers/uavcan/CMakeLists.txt index cc2b10263e0..d2ef09d2064 100644 --- a/src/drivers/uavcan/CMakeLists.txt +++ b/src/drivers/uavcan/CMakeLists.txt @@ -93,7 +93,7 @@ foreach(DSDLC_INPUT ${DSDLC_INPUTS}) list(APPEND DSDLC_INPUT_FILES ${DSDLC_NEW_INPUT_FILES}) endforeach(DSDLC_INPUT) add_custom_command(OUTPUT px4_uavcan_dsdlc_run.stamp - COMMAND ${PYTHON} ${LIBUAVCAN_DIR}/libuavcan/dsdl_compiler/libuavcan_dsdlc ${DSDLC_INPUTS} -O${DSDLC_OUTPUT} + COMMAND ${PYTHON_EXECUTABLE} ${LIBUAVCAN_DIR}/libuavcan/dsdl_compiler/libuavcan_dsdlc ${DSDLC_INPUTS} -O${DSDLC_OUTPUT} COMMAND ${CMAKE_COMMAND} -E touch px4_uavcan_dsdlc_run.stamp DEPENDS ${DSDLC_INPUT_FILES} COMMENT "PX4 UAVCAN dsdl compiler" diff --git a/src/drivers/uavcan/libuavcan b/src/drivers/uavcan/libuavcan index db531b17305..52e7ce09907 160000 --- a/src/drivers/uavcan/libuavcan +++ b/src/drivers/uavcan/libuavcan @@ -1 +1 @@ -Subproject commit db531b17305aa74fa4caea50fd299efdee32c26a +Subproject commit 52e7ce09907bcec8a0b93e7a15d5fbd121c686dc