Browse Source

Allow more avr variants with build_marlin*

pull/1/head
Scott Lahteine 8 years ago
parent
commit
1446b5f01d
  1. 7
      buildroot/bin/build_marlin
  2. 7
      buildroot/bin/build_marlin_fail

7
buildroot/bin/build_marlin

@ -1,3 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
arduino --verify --board arduino:avr:mega:cpu=atmega2560 Marlin/Marlin.ino case "$#" in
0 ) BOARD=arduino:avr:mega:cpu=atmega2560 ;;
* ) BOARD=arduino:avr:$1 ;;
esac
arduino --verify --board $BOARD Marlin/Marlin.ino

7
buildroot/bin/build_marlin_fail

@ -1,7 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if arduino --verify --board arduino:avr:mega:cpu=atmega2560 Marlin/Marlin.ino ; then build_marlin $@ && exit 0
return 1 exit 1
else
return 0
fi

Loading…
Cancel
Save