Changeset aca95f6b in mainline


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

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r44d0758 raca95f6b  
    3030#
    3131
    32 -include ../version
    3332-include Makefile.config
    3433
  • boot/arch/sparc64/loader/Makefile

    r44d0758 raca95f6b  
    2727#
    2828
     29include ../../../../version
     30include ../../../Makefile.config
     31
    2932## Toolchain configuration
    3033#
     
    4750endif
    4851
    49 CFLAGS = -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64
     52CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64
     53
     54ifdef REVISION
     55        CFLAGS += "-DREVISION=\"$(REVISION)\""
     56endif
     57
     58ifdef TIMESTAMP
     59        CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
     60endif
    5061
    5162SOURCES = \
  • boot/arch/sparc64/loader/main.c

    r44d0758 raca95f6b  
    4141component_t components[COMPONENTS];
    4242
     43char *release = RELEASE;
     44
     45#ifdef REVISION
     46        char *revision = ", revision " REVISION;
     47#else
     48        char *revision = "";
     49#endif
     50
     51#ifdef TIMESTAMP
     52        char *timestamp = "\nBuilt on " TIMESTAMP;
     53#else
     54        char *timestamp = "";
     55#endif
     56
     57/** Print version information. */
     58static void version_print(void)
     59{
     60        printf("HelenOS SPARC64 Bootloader\nRelease %s%s%s\nCopyright (C) 2006 HelenOS project\n", release, revision, timestamp);
     61}
     62
    4363void bootstrap(void)
    4464{
    45         printf("HelenOS SPARC64 Bootloader\n");
     65        version_print();
    4666       
    4767        init_components(components);
  • 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.