Changeset aca95f6b in mainline for uspace


Ignore:
Timestamp:
2006-11-24T19:27:09Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
22f851e
Parents:
44d0758
Message:

add version to init and boot loader

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/Makefile

    r44d0758 raca95f6b  
    3030#
    3131
    32 -include ../version
    3332-include Makefile.config
    3433
  • uspace/init/Makefile

    r44d0758 raca95f6b  
    2727#
    2828
     29include ../../version
     30include ../Makefile.config
     31
    2932## Setup toolchain
    3033#
     
    3740
    3841LIBS = $(LIBC_PREFIX)/libc.a
     42DEFS += -DRELEASE=\"$(RELEASE)\"
     43
     44ifdef REVISION
     45        DEFS += "-DREVISION=\"$(REVISION)\""
     46endif
     47
     48ifdef TIMESTAMP
     49        DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
     50endif
    3951
    4052## Sources
  • uspace/init/version.c

    r44d0758 raca95f6b  
    3838#include "version.h"
    3939
     40char *release = RELEASE;
     41
     42#ifdef REVISION
     43        char *revision = ", revision " REVISION;
     44#else
     45        char *revision = "";
     46#endif
     47
     48#ifdef TIMESTAMP
     49        char *timestamp = "\nBuilt on " TIMESTAMP;
     50#else
     51        char *timestamp = "";
     52#endif
     53
    4054/** Print version information. */
    4155void version_print(void)
    4256{
    43         puts("HelenOS init");
    44         puts("Copyright (C) 2006 HelenOS project");
     57        printf("HelenOS init\nRelease %s%s%s\nCopyright (C) 2006 HelenOS project\n", release, revision, timestamp);
    4558}
    4659
    4760/** @}
    4861 */
    49 
Note: See TracChangeset for help on using the changeset viewer.