Re: [avr-gcc-list] Adding date/version information to project??

2005-11-30 Thread Dave Hylands
Hi Matt, Having solved all that, I wanted to add an auto-incrementing build number to the build process, which lives in program memory. Here's how I did it: One slight enancement to consider. If you make the file which contains the build number look like this:

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-30 Thread Dave Hylands
Hi Matt, I wonder if it can be a part of the script itself, and then have the script edit itself in place (using sed -i)?? Hrm, something to try... Well, you could have the makefile increment the buildnumber: include buildnum NEW_BUILDNUMBER = $(shell echo $$(( $(BUILDNUMBER) + 1 ))) This

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Bruce D. Lightner
[EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the

RE: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Matt.VanDeWerken
PROTECTED] [mailto:[EMAIL PROTECTED] org] On Behalf Of Bruce D. Lightner Sent: Wednesday, 30 November 2005 8:23 AM To: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Adding date/version information to project?? [EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way

RE: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Matt.VanDeWerken
-list@nongnu.org Subject: RE: [avr-gcc-list] Adding date/version information to project?? Hi all: I found the error; it was a line in the CFLAGS as follows: -Wa,-adhlns=$(:.c=.lst) So, it was substituting the main.o filename into the above, thus my linkage would fail (since main.o

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Bruce D. Lightner
[EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the

[avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Matt.VanDeWerken
Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the information, and I'd also prefer for

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread John Altstadt
[EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to manually have to change the

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread David Kelly
On Nov 28, 2005, at 10:20 PM, [EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update a static string in program space when my project is built. Is there an easy way to do this, either by adding an extra target to the makefile, or some other way? I'd prefer not to

RE: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Matt.VanDeWerken
: Tuesday, 29 November 2005 3:01 PM To: Van De Werken, Matt (EM, QCAT) Cc: avr-gcc-list@nongnu.org Subject: Re: [avr-gcc-list] Adding date/version information to project?? On Nov 28, 2005, at 10:20 PM, [EMAIL PROTECTED] wrote: Hi all: I am looking for an automated way to update

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Galen Seitz
Here's a snippet from my Makefile. I think this is probably close to meeting your needs. I probably lifted this from somewhere off the net but I don't recall where. For all I know, it came from this mailing list. galen OBJS= ${ASRCS:$(S)=$(O)} ${SRCS:.c=$(O)} EXTRA_OBJS = date.o .PHONY:

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-28 Thread Erik Christiansen
On Tue, Nov 29, 2005 at 03:35:19PM +1100, Russell Shaw wrote: In the makefile rule that calls the linker, a shell command could get the current date and then edit the resulting binary to replace a special marker string with the current date. There might be a way to edit the linker script to