Running a program after linking

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

Moderators: tfAteba, barthess, RoccoMarco, lbednarz, utzig

steved
Posts: 833
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 137 times

Running a program after linking

Postby steved » Thu Oct 24, 2024 3:12 pm

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: 14563
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1111 times
Been thanked: 937 times
Contact:

Re: Running a program after linking

Postby Giovanni » Thu Oct 24, 2024 3:56 pm

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 16 guests