1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 500237 - Use specific version of tool for uploads.

Arduino rolled back the version of avrdude that they used but we were
always using the latest version.

Show the arduino package first in the list of Platforms to Add.

Turn on the Arduino Neon site for future updates.

Conflicts:
	toolchains/arduino/org.eclipse.cdt.arduino-feature/p2.inf

Change-Id: I0392594d7e9d30daeb6c9e4ca7090a92dde8b19f
This commit is contained in:
Doug Schaefer 2016-08-25 21:10:08 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent dbd2b70814
commit 32bc90f8bf
3 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,3 @@
instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/tools/cdt/arduino/neon/,type:0,name:Arduino Neon,enabled:true); \
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/tools/cdt/arduino/neon/,type:1,name:Arduino Neon,enabled:true);

View file

@ -272,7 +272,19 @@ public class ArduinoManager {
public static List<ArduinoPlatform> getSortedPlatforms(Collection<ArduinoPlatform> platforms) {
List<ArduinoPlatform> result = new ArrayList<>(platforms);
Collections.sort(result, (plat1, plat2) -> {
int c1 = plat1.getPackage().getName().compareToIgnoreCase(plat2.getPackage().getName());
int c1;
String p1 = plat1.getPackage().getName();
String p2 = plat2.getPackage().getName();
if (p1.equals(p2)) {
c1 = 0;
} else if (p1.equals("arduino")) {
c1 = -1;
} else if (p2.equals("arduino")) {
c1 = 1;
} else {
c1 = plat1.getPackage().getName().compareToIgnoreCase(plat2.getPackage().getName());
}
if (c1 > 0) {
return 1;
} else if (c1 < 0) {

View file

@ -498,7 +498,7 @@ public class ArduinoBuildConfiguration extends CBuildConfiguration
}
}
ArduinoTool uploadTool = platform.getPackage().getLatestTool(toolName);
ArduinoTool uploadTool = platform.getTool(toolName);
if (uploadTool != null) {
properties.putAll(uploadTool.getToolProperties());
}