File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 1
- # This file is not currently used, the default avrdude.conf in the Arduino IDE is now suitable.
2
- # (From IDE 1.6.13+)
1
+ # This file is used to create avrdude.conf.
3
2
#
4
- # Distributors: if necessary, put custom avrdude.conf in here and rebuild the distribution
5
- # sources.sh will find it and create a suitable programmers.txt as necessary
3
+ # Distributors: if necessary remove the include and put custom avrdude.conf
4
+ # in here and rebuild the distribution. Currently 1.6.13 looks like it
5
+ # has a usable avrdude.conf
6
+ #
7
+ #include "/usr/local/stow/arduino-1.6.13/hardware/tools/avr/etc/avrdude.conf"
Original file line number Diff line number Diff line change @@ -66,10 +66,31 @@ version=${VERSION}
66
66
# Not using a custom avrdude.conf
67
67
rm -f avrdude.conf programmers.txt
68
68
cp programmers.local.txt programmers.txt
69
+
70
+ # Our platform.txt will also need modification to set the avrdude.conf back to the builtin
71
+ # cat platform.txt | sed -r 's/\{runtime.platform.path\}\/avrdude.conf/{path}\/avrdude.conf/' >platform.tmp.txt
72
+ # mv platform.tmp.txt platform.txt
73
+
74
+ # Nope changing the path doesn't work, apparently, if we have our own programmers we MUST have our own
75
+ # avrdude.conf, so copy it in place from arduino. This whole configuration system is an inconsistent mess.
76
+ # The local file will include some other since it isnt an avrdude.conf itself
77
+ cat > avrdude.conf << EOF
78
+ ###############################################################################
79
+ #
80
+ # This file was copied from
81
+ # $( grep -F " #include" avrdude.local.conf | sed -r ' s/.*"(.*)".*/\1/' )
82
+ # as a result of avrdude.local.conf including it.
83
+ #
84
+ # DO NOT EDIT THIS FILE
85
+ # Edit avrdude.local.conf and then recreate the distribution (or ./sources.sh)
86
+ #
87
+ ###############################################################################
88
+
89
+
90
+
91
+ EOF
92
+ cat $( grep -F " #include" avrdude.local.conf | sed -r ' s/.*"(.*)".*/\1/' ) >> avrdude.conf
69
93
70
- # Out platform.txt will also need modification to set the avrdude.conf back to the builtin
71
- cat platform.txt | sed -r ' s/\{runtime.platform.path\}\/avrdude.conf/{path}\/avrdude.conf/' > platform.tmp.txt
72
- mv platform.tmp.txt platform.txt
73
94
fi
74
95
75
96
}
You can’t perform that action at this time.
0 commit comments