Browse Source

Allow more avr variants with build_marlin*

Scott Lahteine 7 years ago
parent
commit
1446b5f01d
2 changed files with 8 additions and 6 deletions
  1. 6
    1
      buildroot/bin/build_marlin
  2. 2
    5
      buildroot/bin/build_marlin_fail

+ 6
- 1
buildroot/bin/build_marlin View File

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

+ 2
- 5
buildroot/bin/build_marlin_fail View File

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

Loading…
Cancel
Save