]> Zhao Yanbai Git Server - kernel.git/commitdiff
define BUILDER
authoracevest <zhaoyanbai@126.com>
Sat, 30 Oct 2021 15:41:05 +0000 (23:41 +0800)
committeracevest <zhaoyanbai@126.com>
Wed, 3 Nov 2021 02:45:44 +0000 (10:45 +0800)
Makefile
kernel/setup.c

index 75dbf4a6ddc5c1d11180dad66f223c8bac6e1113..7648af5c686aacf6b0acaf4415a8ca1ebc4dbcff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ ifeq ($(UNAME), Darwin)
        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
index ffae802a464223b55c072da72652db4fdec5c1dc..488d080ec01efa716b96647f031d8fec76cfe384 100644 (file)
@@ -46,12 +46,11 @@ void setup_i8253()
 }
 
 #define VERSION "0.3.1"
-#define BUIDER  "Zhao Yanbai"
 const char *version = 
     "Kernel version "
     VERSION
     " @ "
-    BUIDER
+    BUILDER
     " ["__DATE__ " " __TIME__ "]"
     "\n";