Changeset fcd7053 in mainline for uspace/app/init


Ignore:
Timestamp:
2009-02-12T20:11:25Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa024ce
Parents:
84266669
Message:

cleanup configuration
code cleanup

Location:
uspace/app/init
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/Makefile

    r84266669 rfcd7053  
    2828
    2929include ../../../version
    30 -include ../../../Makefile.config
    3130
    3231## Setup toolchain
     
    3534LIBC_PREFIX = ../../lib/libc
    3635SOFTINT_PREFIX = ../../lib/softint
     36
    3737include $(LIBC_PREFIX)/Makefile.toolchain
    3838
     
    4040
    4141LIBS = $(LIBC_PREFIX)/libc.a
    42 DEFS += -DRELEASE=\"$(RELEASE)\"
    43 
    44 ifdef REVISION
    45         DEFS += "-DREVISION=\"$(REVISION)\""
    46 endif
    47 
    48 ifdef TIMESTAMP
    49         DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
    50 endif
     42DEFS += -DRELEASE=$(RELEASE)
    5143
    5244## Sources
     
    7365
    7466$(OUTPUT): $(OBJECTS) $(LIBS)
    75         $(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
     67        $(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
    7668
    7769disasm: $(OUTPUT).disasm
  • uspace/app/init/version.c

    r84266669 rfcd7053  
    3636#include <unistd.h>
    3737#include <stdio.h>
     38#include <macros.h>
    3839#include "init.h"
    3940#include "version.h"
    4041
    41 char *release = RELEASE;
     42char *release = STRING(RELEASE);
    4243
    4344#ifdef REVISION
    44         char *revision = ", revision " REVISION;
     45        char *revision = ", revision " STRING(REVISION);
    4546#else
    4647        char *revision = "";
     
    4849
    4950#ifdef TIMESTAMP
    50         char *timestamp = "\nBuilt on " TIMESTAMP;
     51        char *timestamp = "\nBuilt on " STRING(TIMESTAMP);
    5152#else
    5253        char *timestamp = "";
Note: See TracChangeset for help on using the changeset viewer.