mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
This commit is contained in:
@ -1534,12 +1534,12 @@ public class Base {
|
|||||||
|
|
||||||
|
|
||||||
static public String getAvrBasePath() {
|
static public String getAvrBasePath() {
|
||||||
if(Base.isLinux()) {
|
String path = getHardwarePath() + File.separator + "tools" +
|
||||||
return ""; // avr tools are installed system-wide and in the path
|
|
||||||
} else {
|
|
||||||
return getHardwarePath() + File.separator + "tools" +
|
|
||||||
File.separator + "avr" + File.separator + "bin" + File.separator;
|
File.separator + "avr" + File.separator + "bin" + File.separator;
|
||||||
|
if (Base.isLinux() && !(new File(path)).exists()) {
|
||||||
|
return ""; // use distribution provided avr tools if bundled tools missing
|
||||||
}
|
}
|
||||||
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -349,11 +349,24 @@
|
|||||||
|
|
||||||
<copy todir="linux/work" file="linux/dist/arduino" />
|
<copy todir="linux/work" file="linux/dist/arduino" />
|
||||||
<chmod perm="755" file="linux/work/arduino" />
|
<chmod perm="755" file="linux/work/arduino" />
|
||||||
|
|
||||||
|
<!-- Unzip AVR tools -->
|
||||||
|
<bunzip2 dest="linux" src="linux/avr_tools_linux32.tar.bz2" />
|
||||||
|
<exec executable="tar" dir="linux/work/hardware">
|
||||||
|
<arg value="-xvf"/>
|
||||||
|
<arg value="../../avr_tools_linux32.tar"/>
|
||||||
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
|
<target name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">
|
||||||
<copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
|
<copy tofile="linux/work/hardware/tools/avrdude" file="linux/dist/tools/avrdude64" overwrite="true" />
|
||||||
<copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
|
<copy tofile="linux/work/lib/librxtxSerial.so" file="linux/dist/lib/librxtxSerial64.so" overwrite="true" />
|
||||||
|
<!-- Unzip AVR tools -->
|
||||||
|
<bunzip2 dest="linux" src="linux/avr_tools_linux64.tar.bz2" />
|
||||||
|
<exec executable="tar" dir="linux/work/hardware">
|
||||||
|
<arg value="-xvf"/>
|
||||||
|
<arg value="../../avr_tools_linux64.tar"/>
|
||||||
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="linux-run" depends="linux-build"
|
<target name="linux-run" depends="linux-build"
|
||||||
|
BIN
build/linux/avr_tools_linux32.tar.bz2
Normal file
BIN
build/linux/avr_tools_linux32.tar.bz2
Normal file
Binary file not shown.
BIN
build/linux/avr_tools_linux64.tar.bz2
Normal file
BIN
build/linux/avr_tools_linux64.tar.bz2
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user