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:
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
[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
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
-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
[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
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
[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
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
: 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
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:
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
12 matches
Mail list logo