Changeset aca95f6b in mainline for boot/arch


Ignore:
Timestamp:
2006-11-24T19:27:09Z (19 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:
boot/arch/sparc64/loader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.