@@ -178,21 +178,14 @@ public boolean compile(Sketch sketch,
178
178
// 1. compile the sketch (already in the buildPath)
179
179
System .out .println ("1. compileSketch" );
180
180
compileSketch (avrBasePath , buildPath , includePaths , configPreferences );
181
- /*
182
- objectFiles.addAll(
183
- compileFiles(avrBasePath, buildPath, includePaths,
184
- findFilesInPath(buildPath, "S", false),
185
- findFilesInPath(buildPath, "c", false),
186
- findFilesInPath(buildPath, "cpp", false),
187
- boardPreferences));
188
- */
181
+
189
182
190
183
// 2. compile the libraries, outputting .o files to: <buildPath>/<library>/
191
184
// 2. compile the libraries, outputting .o files to:
192
185
// <buildPath>/<library>/
193
186
//Doesn't really use configPreferences
194
- System .out .println ("2. compileLibraries" );
195
- compileLibraries (avrBasePath , buildPath , includePaths , configPreferences );
187
+ System .out .println ("2. compileLibraries" );
188
+ compileLibraries (avrBasePath , buildPath , includePaths , configPreferences );
196
189
/*
197
190
198
191
for (File libraryFolder : sketch.getImportedLibraries()) {
@@ -315,53 +308,6 @@ public boolean compile(Sketch sketch,
315
308
*/
316
309
317
310
return true ;
318
- /*
319
-
320
- logger.debug("corePaths: " + this.corePath);
321
-
322
-
323
- this.objectFiles = new ArrayList<File>();
324
-
325
- // 0. include paths for core + all libraries
326
- logger.debug("0. getIncludes");
327
- this.includePaths = getIncludes(this.corePath);
328
-
329
- // 1. compile the sketch (already in the buildPath)
330
- logger.debug("1. compileSketch");
331
- compileSketch(avrBasePath, buildPath, includePaths, configPreferences);
332
-
333
- // 2. compile the libraries, outputting .o files to:
334
- // <buildPath>/<library>/
335
- //Doesn't really use configPreferences
336
- logger.debug("2. compileLibraries");
337
- compileLibraries(avrBasePath, buildPath, includePaths, configPreferences);
338
-
339
- // 3. compile the core, outputting .o files to <buildPath> and then
340
- // collecting them into the core.a library file.
341
- logger.debug("3. compileCore");
342
- compileCore(avrBasePath, buildPath, this.corePath, configPreferences);
343
-
344
- // 4. link it all together into the .elf file
345
- logger.debug("4. compileLink");
346
- compileLink(avrBasePath, buildPath, this.corePath, includePaths, configPreferences);
347
-
348
- // 5. extract EEPROM data (from EEMEM directive) to .eep file.
349
- logger.debug("5. compileEep");
350
- compileEep(avrBasePath, buildPath, includePaths, configPreferences);
351
-
352
- // 6. build the .hex file
353
- logger.debug("6. compileHex");
354
- compileHex(avrBasePath, buildPath, includePaths, configPreferences);
355
-
356
- //done
357
- logger.debug("7. compile done");
358
- return true;
359
-
360
-
361
-
362
- */
363
-
364
-
365
311
}
366
312
367
313
0 commit comments