mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Removed unused/unuseful defines from platform.txt
This commit is contained in:
parent
b7c54b79d7
commit
c2d1de3844
@ -1006,12 +1006,10 @@ public class Base {
|
|||||||
examplesFolder = getContentFile("examples");
|
examplesFolder = getContentFile("examples");
|
||||||
toolsFolder = getContentFile("tools");
|
toolsFolder = getContentFile("tools");
|
||||||
|
|
||||||
TargetPlatform targetPlatform = getTargetPlatform();
|
File platformFolder = getTargetPlatform().getFolder();
|
||||||
PreferencesMap prefs = targetPlatform.getPreferences();
|
|
||||||
librariesFolders = new ArrayList<File>();
|
librariesFolders = new ArrayList<File>();
|
||||||
librariesFolders.add(getContentFile("libraries"));
|
librariesFolders.add(getContentFile("libraries"));
|
||||||
librariesFolders.add(new File(targetPlatform.getFolder(), prefs
|
librariesFolders.add(new File(platformFolder, "libraries"));
|
||||||
.get("library.core.path")));
|
|
||||||
librariesFolders.add(getSketchbookLibrariesFolder());
|
librariesFolders.add(getSketchbookLibrariesFolder());
|
||||||
|
|
||||||
// Scan for libraries in each library folder.
|
// Scan for libraries in each library folder.
|
||||||
|
@ -19,27 +19,23 @@ compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,
|
|||||||
compiler.elf2hex.flags=-O ihex -R .eeprom
|
compiler.elf2hex.flags=-O ihex -R .eeprom
|
||||||
compiler.elf2hex.cmd=avr-objcopy
|
compiler.elf2hex.cmd=avr-objcopy
|
||||||
compiler.ldflags=
|
compiler.ldflags=
|
||||||
compiler.cpudef=-mmcu=
|
|
||||||
compiler.upload.cmd=
|
compiler.upload.cmd=
|
||||||
compiler.upload.flags=
|
compiler.upload.flags=
|
||||||
compiler.define=-DARDUINO=
|
|
||||||
library.path=./hardware/arduino/cores/arduino
|
|
||||||
library.core.path=./libraries
|
|
||||||
|
|
||||||
# AVR compile patterns
|
# AVR compile patterns
|
||||||
# --------------------
|
# --------------------
|
||||||
|
|
||||||
## Compile c files
|
## Compile c files
|
||||||
recipe.c.o.pattern={toolchain_path}{compiler.c.cmd} {compiler.c.flags} {compiler.cpudef}{build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version} {includes} {source_file} -o {object_file}
|
recipe.c.o.pattern={toolchain_path}{compiler.c.cmd} {compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version} {includes} {source_file} -o {object_file}
|
||||||
|
|
||||||
## Compile c++ files
|
## Compile c++ files
|
||||||
recipe.cpp.o.pattern={toolchain_path}{compiler.cpp.cmd} {compiler.cpp.flags} {compiler.cpudef}{build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version} {includes} {source_file} -o {object_file}
|
recipe.cpp.o.pattern={toolchain_path}{compiler.cpp.cmd} {compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -D{software}={ide_version} {includes} {source_file} -o {object_file}
|
||||||
|
|
||||||
## Create archives
|
## Create archives
|
||||||
recipe.ar.pattern={toolchain_path}{compiler.ar.cmd} {compiler.ar.flags} {build_path}{archive_file} {object_file}
|
recipe.ar.pattern={toolchain_path}{compiler.ar.cmd} {compiler.ar.flags} {build_path}{archive_file} {object_file}
|
||||||
|
|
||||||
## Combine gc-sections, archives, and objects
|
## Combine gc-sections, archives, and objects
|
||||||
recipe.c.combine.pattern={toolchain_path}{compiler.c.elf.cmd} {compiler.c.elf.flags} {compiler.cpudef}{build.mcu} -o {build_path}{project_name}.elf {object_files} {build_path}{archive_file} -L{build_path} -lm
|
recipe.c.combine.pattern={toolchain_path}{compiler.c.elf.cmd} {compiler.c.elf.flags} -mmcu={build.mcu} -o {build_path}{project_name}.elf {object_files} {build_path}{archive_file} -L{build_path} -lm
|
||||||
|
|
||||||
## Create eeprom
|
## Create eeprom
|
||||||
recipe.objcopy.eep.pattern={toolchain_path}{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build_path}{project_name}.elf {build_path}{project_name}.eep
|
recipe.objcopy.eep.pattern={toolchain_path}{compiler.objcopy.cmd} {compiler.objcopy.eep.flags} {build_path}{project_name}.elf {build_path}{project_name}.eep
|
||||||
|
Loading…
x
Reference in New Issue
Block a user