Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ca7d20)
raw | patch | inline | side by side (parent: 5ca7d20)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Sat, 30 Oct 2021 15:41:05 +0000 (23:41 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Wed, 3 Nov 2021 02:45:44 +0000 (10:45 +0800) |
| Makefile | patch | blob | history | |
| kernel/setup.c | patch | blob | history |
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
CC = i686-elf-gcc
LD = i686-elf-ld
endif
-CFLAGS = -g -c -fno-builtin -m32
+CFLAGS = -g -c -fno-builtin -m32 -DBUILDER='"$(shell whoami)"'
SYSTEMMAP = System.map
KERNELBIN = KERNEL.BIN
LINKSCRIPT = scripts/link.ld
diff --git a/kernel/setup.c b/kernel/setup.c
--- a/kernel/setup.c
+++ b/kernel/setup.c
}
#define VERSION "0.3.1"
-#define BUIDER "Zhao Yanbai"
const char *version =
"Kernel version "
VERSION
" @ "
- BUIDER
+ BUILDER
" ["__DATE__ " " __TIME__ "]"
"\n";