Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/mz'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkajita-mchp committed Mar 19, 2014
2 parents e26a7e7 + 547889f commit 5e5d501
Show file tree
Hide file tree
Showing 26 changed files with 695 additions and 428 deletions.
109 changes: 55 additions & 54 deletions app/src/processing/app/debug/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -687,59 +687,60 @@ void compileCore (String avrBasePath, String buildPath, String corePath, String

// 4. link it all together into the .elf file
void compileLink(String avrBasePath, String buildPath, String corePath, ArrayList<String> includePaths, HashMap<String, String> configPreferences)
throws RunnerException
{
logger.debug("compileLink: start");
String baseCommandString = configPreferences.get("recipe.c.combine.pattern");
String commandString = "";
MessageFormat compileFormat = new MessageFormat(baseCommandString);
String objectFileList = "";

for (File file : objectFiles) {
objectFileList = objectFileList + file.getAbsolutePath() + "::";
}

String variant = configPreferences.get("build.variant");
Target t;
String variantPath;
if (variant.indexOf(':') == -1) {
t = Base.getTarget();
variantPath = t.getVariantFolder(variant).getAbsolutePath();
} else {
t = Base.targetsTable.get(variant.substring(0, variant.indexOf(':')));
variantPath = t.getVariantFolder(variant.substring(0, variant.indexOf(':'))).getAbsolutePath();
}

String ldscript = configPreferences.get("ldscript");
throws RunnerException
{
logger.debug("compileLink: start");
String baseCommandString = configPreferences.get("recipe.c.combine.pattern");
String commandString = "";
MessageFormat compileFormat = new MessageFormat(baseCommandString);
String objectFileList = "";

for (File file : objectFiles) {
objectFileList = objectFileList + file.getAbsolutePath() + "::";
}

String foundPath = null;
if (ldscript != null) {
File testFile = null;
String variant = configPreferences.get("build.variant");
logger.debug("variant: " + variant);
Target t;
String variantPath;
if (variant.indexOf(':') == -1) {
t = Base.getTarget();
variantPath = t.getVariantFolder(variant).getAbsolutePath();
} else {
t = Base.targetsTable.get(variant.substring(0, variant.indexOf(':')));
variantPath = t.getVariantFolder(variant.substring(0, variant.indexOf(':'))).getAbsolutePath();
}

testFile = new File(variantPath, ldscript);
logger.debug("Searching for " + variantPath + "/" + ldscript + "...");
if (testFile.exists()) {
logger.debug("... found");
foundPath = variantPath;
} else {
logger.debug("Searching for " + corePath + "/" + ldscript + "...");
testFile = new File(corePath, ldscript);
if (testFile.exists()) {
logger.debug("... found");
foundPath = corePath;
}
}
String ldscript = configPreferences.get("ldscript");

String foundPath = null;
if (ldscript != null) {
File testFile = null;

testFile = new File(variantPath, ldscript);
logger.debug("Searching for " + variantPath + "/" + ldscript + "...");
if (testFile.exists()) {
logger.debug("... found");
foundPath = variantPath;
} else {
logger.debug("Searching for " + corePath + "/" + ldscript + "...");
testFile = new File(corePath, ldscript);
if (testFile.exists()) {
logger.debug("... found");
foundPath = corePath;
}
}

if (foundPath == null) {
System.out.println("Linker script not found: " + ldscript);
return;
}
} else {
ldscript = "";
foundPath = "";
}
if (foundPath == null) {
System.out.println("Linker script not found: " + ldscript);
return;
}
} else {
ldscript = "";
foundPath = "";
}

Object[] Args = {
Object[] Args = {
avrBasePath,
configPreferences.get("compiler.c.elf.cmd"),
configPreferences.get("compiler.c.elf.flags"),
Expand All @@ -754,11 +755,11 @@ void compileLink(String avrBasePath, String buildPath, String corePath, ArrayLis
configPreferences.get("ldscript") != null ? configPreferences.get("ldscript") : "",
corePath,
configPreferences.get("ldcommon") != null ? configPreferences.get("ldcommon") : "",
};
commandString = compileFormat.format( Args );
logger.debug("Link command: " + commandString);
execAsynchronously(commandString);
}
};
commandString = compileFormat.format( Args );
logger.debug("Link command: " + commandString);
execAsynchronously(commandString);
}

// 5. extract EEPROM data (from EEMEM directive) to .eep file.
void compileEep (String avrBasePath, String buildPath, ArrayList<String> includePaths, HashMap<String, String> configPreferences)
Expand Down
4 changes: 2 additions & 2 deletions build/upload.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#Tue, 21 Jan 2014 23:22:46 -0500
#Fri, 07 Mar 2014 21:43:18 -0500
aws.access_key=
aws.secret_key=

extension=dmg

uploadversion=0023-macosx-20140121-test
uploadversion=0023-macosx-20140307-test

106 changes: 0 additions & 106 deletions build/windows/dist/drivers/Arduino MEGA 2560.inf

This file was deleted.

106 changes: 0 additions & 106 deletions build/windows/dist/drivers/Arduino UNO.inf

This file was deleted.

Binary file not shown.
7 changes: 7 additions & 0 deletions build/windows/dist/drivers/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

With this version of Arduino a new all-in-one driver (with
security signature for Windows 8) is supplied.

The old (deprected) drivers are still available in the
Old_Arduino_Drivers.zip

Binary file added build/windows/dist/drivers/arduino.cat
Binary file not shown.
Loading

0 comments on commit 5e5d501

Please sign in to comment.