[MP1] Update upload tool

Remove '.ino' from sketch name

Co-Authored-By: Bumsik Kim <k.bumsik@gmail.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic Pillon 2019-11-15 15:52:40 +01:00
parent 6cad3a811e
commit 0bd6239215

View file

@ -219,10 +219,11 @@ case "$1" in
TERM=xterm minicom -D $RPMSG_DIR TERM=xterm minicom -D $RPMSG_DIR
;; ;;
generate) generate)
generate_packaged_script $2 $3 output=$(echo "$3" | sed 's/\.ino\././g')
echo "$(readlink -f "$3") generated successfully." 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 "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 "For detailed instructions, please visit:"
echo " https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md" echo " https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants/STM32MP157_DK/README.md"
;; ;;