File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969# Building specific firmware folder
7070echo " Building firmware for $RTOS platform $PLATFORM "
7171
72- if [ $PLATFORM ! = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
72+ if [ $PLATFORM = = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
7373 . $PREFIX /config/$RTOS /generic/build.sh
7474else
7575 . $PREFIX /config/$RTOS /$PLATFORM /build.sh
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash
22
33set -e
44set -o nounset
1717fi
1818
1919# Check if configure script exists
20- if [ $PLATFORM ! = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
20+ if [ $PLATFORM = = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
2121 if [ ! -f $PREFIX /config/$RTOS /generic/configure.sh ]; then
2222 echo " No configuration step needed for generic platform $PLATFORM "
2323 exit 0
3232# Parsing micro-ROS arguments
3333if [ $# -lt 1 ]; then
3434 echo " micro-ROS application name must be provided: ros2 run micro_ros_setup configure_firmware.sh [app name] [options]"
35- # Check if RTOS has app listing funcions and source in case
35+ # Check if RTOS has app listing funcions and source in case
3636 if [ -f $PREFIX /config/$RTOS /list_apps.sh ]; then
3737 . $PREFIX /config/$RTOS /list_apps.sh
3838 print_available_apps
@@ -80,7 +80,7 @@ while [[ $# -gt 0 ]]; do
8080done
8181
8282# Configure specific firmware folder if needed
83- if [ $PLATFORM ! = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
83+ if [ $PLATFORM = = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
8484 echo " Configuring firmware for $RTOS platform $PLATFORM "
8585 exec $PREFIX /config/$RTOS /generic/configure.sh $@
8686else
Original file line number Diff line number Diff line change 7676SKIP=" microxrcedds_agent microxrcedds_client microcdr rosidl_typesupport_connext_cpp rosidl_typesupport_connext_c rosidl_typesupport_opensplice_cpp rosidl_typesupport_opensplice_c rmw_opensplice_cpp ros-${ROS_DISTRO} -cyclonedds ros-${ROS_DISTRO} -rti-connext-dds-cmake-module ros-${ROS_DISTRO} -rmw-connextdds-common ros-${ROS_DISTRO} -rmw-connextdds ros-${ROS_DISTRO} -rmw-cyclonedds-cpp google_benchmark_vendor performance_test_fixture ros-${ROS_DISTRO} -mimick-vendor rmw_cyclonedds_cpp rmw_connext_cpp rti-connext-dds-5.3.1 rmw_connextdds $EXTERNAL_SKIP "
7777
7878# Check generic build
79- if [ $PLATFORM ! = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
79+ if [ $PLATFORM = = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
8080 TARGET_FOLDER=generic
8181else
8282 TARGET_FOLDER=$PLATFORM
Original file line number Diff line number Diff line change 1717fi
1818
1919# Flash specific firmware folder if needed
20- if [ $PLATFORM ! = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
20+ if [ $PLATFORM = = " generic" ] && [ -d " $PREFIX /config/$RTOS /generic" ]; then
2121 if [ -f $PREFIX /config/$RTOS /generic/flash.sh ]; then
2222 echo " Flashing firmware for $RTOS platform $PLATFORM "
2323 . $PREFIX /config/$RTOS /generic/flash.sh
You can’t perform that action at this time.
0 commit comments