Need some help

support for the ARM toolchain
Post Reply
lemmymet
Posts: 5
Joined: Fri Dec 16, 2011 2:04 pm

Need some help

Post by lemmymet » Sat May 19, 2012 8:05 pm

I have some linux environment variables(made by my CI) that are dynamic(build number and svn commit message), what's the best way to let the application print these values at application start?
I am thinking of making a shell script thats run before make that inserts variables into the code.
Is there a better way?

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Need some help

Post by WinterMute » Sun May 20, 2012 3:25 pm

Make can run shellscripts quite happliy, you can either create a target to generate a header file with the appropriate variables or extend CFLAGS with the -D options you want.
Help keep devkitPro toolchains free, Donate today

Personal Blog

lemmymet
Posts: 5
Joined: Fri Dec 16, 2011 2:04 pm

Re: Need some help

Post by lemmymet » Mon May 21, 2012 6:39 pm

Okay, will try that!
Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests