Running a program after linking

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Running a program after linking

Post by steved »

The standard 'make' process runs other programs once linking is complete - for example the one that generates the listing.
Is it possible to add another similar task without editing the Chibi standard files?
(I've got it working by editing rules.mk at present)
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Running a program after linking

Post by Giovanni »

Hi,

Maybe checking for an environment variable then executing the command specified in there, or adding extra targets in Makefile after including rules.mk.

A while ago somebody added those PRE_MAKE_ALL_RULE_HOOK, POST_MAKE_ALL_RULE_HOOK but I don't remember how those are used.

Giovanni
Post Reply