Changeset 940cac0 in mainline
- Timestamp:
- 2005-12-07T17:17:20Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4acac843
- Parents:
- 54257ba
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r54257ba r940cac0 50 50 AFLAGS = 51 51 52 ifdef TAG 53 DEFS += "-DTAG=\"$(TAG)\"" 52 ifdef REVISION 53 DEFS += "-DREVISION=\"$(REVISION)\"" 54 endif 55 56 ifdef TIMESTAMP 57 DEFS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" 54 58 endif 55 59 … … 139 143 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 140 144 141 .PHONY: all clean config links depend boot145 .PHONY: all build clean config links depend boot 142 146 143 147 all: 144 148 tools/config.py default 145 $(MAKE) -C . real_all146 147 real_all: kernel.bin boot disasm149 $(MAKE) -C . build 150 151 build: kernel.bin boot disasm 148 152 149 153 config: -
generic/include/debug.h
r54257ba r940cac0 48 48 #endif 49 49 50 #define STRING(arg) STRING_ARG(arg) 51 #define STRING_ARG(arg) #arg 52 50 53 #endif -
generic/src/main/main.c
r54257ba r940cac0 31 31 #include <print.h> 32 32 #include <panic.h> 33 #include <debug.h> 33 34 #include <config.h> 34 35 #include <time/clock.h> … … 64 65 65 66 char *project = "SPARTAN kernel"; 66 char *release = RELEASE " (" NAME ")"; 67 #ifdef TAG 68 char *rr_delimiter = "\n"; 69 char *revision = TAG; 67 char *copyright = "Copyright (C) 2001-2005 HelenOS project"; 68 char *release = RELEASE; 69 char *name = NAME; 70 char *arch = STRING(ARCH); 71 72 #ifdef REVISION 73 char *revision = ", revision " REVISION; 70 74 #else 71 char *rr_delimiter = "";72 75 char *revision = ""; 73 76 #endif 74 char *copyright = "Copyright (C) 2001-2005 HelenOS project"; 77 78 #ifdef TIMESTAMP 79 char *timestamp = " on " TIMESTAMP; 80 #else 81 char *timestamp = ""; 82 #endif 83 75 84 76 85 config_t config; … … 173 182 arch_post_mm_init(); 174 183 175 printf("%s, release %s %s%s\n%s\n", project, release, rr_delimiter, revision, copyright);184 printf("%s, release %s (%s)%s\nBuild%s for %s\n%s\n", project, release, name, revision, timestamp, arch, copyright); 176 185 printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n", 177 186 config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024); -
kernel.config
r54257ba r940cac0 9 9 @ "sparc64" Sun UltraSPARC 10 10 ! ARCH (choice) 11 12 % SHELLCMD TAG tools/buildtag $ARCH13 11 14 12 # IA32 Compiler -
tools/config.py
r54257ba r940cac0 6 6 import os 7 7 import re 8 import commands 8 9 9 10 INPUT = 'kernel.config' … … 377 378 # Set title of the dialog window 378 379 dlg.set_title(line[2:].strip()) 379 380 381 outf.write('\n') 382 outf.write('REVISION=%s\n' % commands.getoutput('svnversion . 2> /dev/null')) 383 outf.write('TIMESTAMP=%s\n' % commands.getoutput('date "+%Y-%m-%d %H:%M:%S"')) 380 384 outf.close() 381 385 f.close()
Note:
See TracChangeset
for help on using the changeset viewer.