From 0bd6239215e480f565ed4e5e7b394ef79f4a4c2f Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 15 Nov 2019 15:52:40 +0100 Subject: [PATCH] [MP1] Update upload tool Remove '.ino' from sketch name Co-Authored-By: Bumsik Kim Signed-off-by: Frederic Pillon --- run_arduino_gen.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run_arduino_gen.sh b/run_arduino_gen.sh index 3b67ecba..2704625f 100755 --- a/run_arduino_gen.sh +++ b/run_arduino_gen.sh @@ -219,10 +219,11 @@ case "$1" in TERM=xterm minicom -D $RPMSG_DIR ;; generate) - generate_packaged_script $2 $3 - echo "$(readlink -f "$3") generated successfully." + output=$(echo "$3" | sed 's/\.ino\././g') + generate_packaged_script $2 $output + echo "$(readlink -f "$output") generated successfully." echo "This file should be uploaded manually by SCP, SFTP, Kermit, or etc." - echo "Then run \"sh ./$(basename $3) start\" command in the board's console." + echo "Then run \"sh ./$(basename $output) start\" command in the board's console." echo "For detailed instructions, please visit:" echo " https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md" ;;