Skip to content
This repository was archived by the owner on Oct 6, 2021. It is now read-only.

Commit 89f1e31

Browse files
committed
Update options name which have been shorten in the core
See stm32duino/Arduino_Core_STM32#109 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 178248f commit 89f1e31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arduino-builder/linux/arduino-builder-cli.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ check_sketch_param_Serial() {
129129
if [ -n "$_serialx" ]; then
130130
echo "Sketch requires to enable all Serial" >> $LOG_FILE
131131
echo "Sketch requires to enable all Serial"
132-
param="$param,Other_serial=enable_SerialAll"
132+
param="$param,xserial=SerialAll"
133133
fi
134134
}
135135

@@ -139,7 +139,7 @@ check_sketch_param_USB_HID() {
139139
if [ -n "$_usb_hid" ]; then
140140
echo "Sketch requires to enable USB HID" >> $LOG_FILE
141141
echo "Sketch requires to enable USB HID"
142-
param="$param,USB_interface=enable_HID"
142+
param="$param,usb=HID"
143143
fi
144144
}
145145

@@ -212,7 +212,7 @@ build() {
212212
local _param=$4
213213

214214
#ex: ./arduino --board STM32:stm32:Nucleo_144:Nucleo_144_board=NUCLEO_F429ZI --verify $INO_FILE >> $LOG_FILE 2>&1
215-
./arduino --board STM32:stm32:${_pack}:board_part_num=${_target}${_param} --verify ${_sketch} >> $LOG_FILE 2>&1
215+
./arduino --board STM32:stm32:${_pack}:pnum=${_target}${_param} --verify ${_sketch} >> $LOG_FILE 2>&1
216216
check_result $? $_target
217217
}
218218

@@ -269,7 +269,7 @@ else
269269
fi
270270

271271
# Manage board
272-
board_list=(`grep -E ".+\.menu\.board_part_num\.[^\.]+=" $DEFAULT_BOARD_FILE | grep -i -E "$boards_pattern" | cut -d'=' -f1 | cut -d'.' -f1,4 | sort -t. -k1r,1r -k2`)
272+
board_list=(`grep -E ".+\.menu\.pnum\.[^\.]+=" $DEFAULT_BOARD_FILE | grep -i -E "$boards_pattern" | cut -d'=' -f1 | cut -d'.' -f1,4 | sort -t. -k1r,1r -k2`)
273273
TOTAL_BOARD=${#board_list[@]}
274274
if [ $TOTAL_BOARD -ne 0 ]; then
275275
echo "Number of board(s) to build: $TOTAL_BOARD"

0 commit comments

Comments
 (0)