Adding 32-bit version of AVR toolchain on Linux (Paul Stoffregen)

http://code.google.com/p/arduino/issues/detail?id=300
This commit is contained in:
David A. Mellis 2012-02-28 14:50:28 -05:00
parent 9f755d159a
commit 784232c6a5
3 changed files with 13 additions and 6 deletions

View File

@ -1534,12 +1534,12 @@ public class Base {
static public String getAvrBasePath() {
if(Base.isLinux()) {
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;
}
String path = getHardwarePath() + File.separator + "tools" +
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;
}

View File

@ -349,6 +349,13 @@
<copy todir="linux/work" file="linux/dist/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 name="linux64-build" depends="linux-build" description="Build linux (64-bit) version">

Binary file not shown.