mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-22 15:53:58 +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. Change-Id: I63a5d638d8ad7894715242949595216f4ff1091a
This commit is contained in:
parent
4c4df81725
commit
205ae40897
3 changed files with 16 additions and 4 deletions
|
@ -1,3 +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:false); \
|
||||
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/tools/cdt/arduino/neon/,type:1,name:Arduino Neon,enabled:false);
|
||||
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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue