Menu

#81 post-build steps and secondary targets do not play well together

Next release
open-postponed
None
5
2014-09-10
2014-02-05
No

it seems that CDT is not very happy with both post-build steps and secondary targets, the order of operations in the generated makefiles is not as expected.

Discussion

  • Robert Kraske

    Robert Kraske - 2014-04-24

    Post-build steps are started too early.
    I want to calculate a CRC over the srec file (with srec_cat).
    Post-build starts right after the elf file is created.
    But at this time the srec file has not yet been created by the Cross ARM GNU Create Flash Image process.

     
  • Liviu Ionescu (ilg)

    unfortunately the build order for the secondary targets and the post-build steps is controlled by CDT, not by the plug-in, and fixing it requires patching CDT, which is a long and complicated process. :-(

     
  • Liviu Ionescu (ilg)

    • status: open-accepted --> open-postponed
     
  • Elliott Partridge

    One workaround is to create a separate builder (Project Properties > Builders) that runs after the CDT builder. You can have the builder run tools directly, a script, etc. Then set it to only build during manual builds. It will be triggered after all CDT steps are finished, including lst file generation, print size, and objcopy.