Skip to content

Commit

Permalink
[mark1] Add global avrdude.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed May 3, 2024
1 parent cc1cdc1 commit 0f4ca36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function setup_avrdude() {
rm "$AVRDUDE_BINARY_PATH"
fi

curl -s -f -L "$AVRDUDE_URL" -o "$AVRDUDE_BINARY_PATH" &>>"$LOG_FILE"
curl -s -f -L "$AVRDUDE_BINARY_URL" -o "$AVRDUDE_BINARY_PATH" &>>"$LOG_FILE"
chmod 0755 "$AVRDUDE_BINARY_PATH" &>>"$LOG_FILE"

cat <<EOF >"$RUN_AS_HOME/.avrduderc"
Expand All @@ -418,7 +418,8 @@ function setup_avrdude() {
sdi = 17;
;
EOF
chown "$RUN_AS:$RUN_AS" "$RUN_AS_HOME/.avrduderc"
chown "$RUN_AS:$RUN_AS" "$RUN_AS_HOME/.avrduderc" &>>"$LOG_FILE"
curl -s -f -L "$AVRDUDE_CONFIG_URL" -o "$AVRDUDE_CONFIG_PATH" &>>"$LOG_FILE"
}

# This function retrieves the atmega328p signature when present. If the
Expand Down
4 changes: 3 additions & 1 deletion utils/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

export ATMEGA328P_SIGNATURE=":030000001E950F3B"
export AVRDUDE_BINARY_PATH=/usr/local/bin/avrdude
export AVRDUDE_URL="https://artifacts.smartgic.io/avrdude-aarch64"
export AVRDUDE_BINARY_URL="https://artifacts.smartgic.io/avrdude/avrdude-aarch64"
export AVRDUDE_CONFIG_PATH=/usr/local/etc/avrdude.conf
export AVRDUDE_CONFIG_URL="https://artifacts.smartgic.io/avrdude/avrdude.conf"
declare -a DETECTED_DEVICES
export DETECTED_DEVICES
export DT_FILE=/sys/firmware/devicetree/base/model
Expand Down

0 comments on commit 0f4ca36

Please sign in to comment.