Skip to content

Arduino IDE 1.5.2 platform.txt file. recipe.c.combine.pattern contains "{build.path}/syscalls_sam3.c.o" and {object_files}. #1287

Closed
@jantje

Description

@jantje

Hi
I'm currently working on porting my arduino eclipse plugin to Arduino IDE 1.5.2. I first would like to say I like the idea of having the configuration in an external file so it allows for a great deal of flexibility and can be reused by other tools.
When working with it however I have some questions/doubts for which I hope this is the forum to discuss. (the google forum is dead :-( ; and the old mailing list doesn't work any more for me)
My biggest question right now is about
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mcpu={build.mcu} "-T{build.variant.path}/{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" -o "{build.path}/{build.project_name}.elf" "-L{build.path}" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group "{build.path}/syscalls_sam3.c.o" {object_files} "{build.variant.path}/{build.variant_system_lib}" "{build.path}/{archive_file}" -Wl,--end-group

This patters contains "{build.path}/syscalls_sam3.c.o" and {object_files}
There are 2 problems I have with that.

  1. {object_files} should contain "syscalls_sam3.c.o" so this is redundant information
  2. "{build.path}/syscalls_sam3.c.o" is semi hard coded. In my case the file is "{build.path}/arduino/syscalls_sam3.c.o" but some tools may even prefer not to have the .c.o format. So eclipse complains about not finding the file.

So my question is : could "{build.path}/syscalls_sam3.c.o" be removed?

Best regards
Jantje

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions