Skip to content

Commit 81e1165

Browse files
authored
kernel: rename GIT_HASH to KERNEL_GIT_HASH (#630)
1 parent dd5ccbd commit 81e1165

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ KERNEL_CFLAGS += -ffunction-sections -fdata-sections
202202
KERNEL_CFLAGS += $(WERRORS)
203203
KERNEL_CFLAGS += $(KERNEL_CONFIG)
204204

205-
KERNEL_CONFIG += -DGIT_HASH=\"$(git_hash)\"
205+
KERNEL_CONFIG += -DKERNEL_GIT_HASH=\"$(git_hash)\"
206206
KERNEL_CONFIG += -DARCH=\"$(ARCH)\"
207207

208208
DEBUG_CFLAGS += -g3 -DDEBUG_MODE

include/kernel/osinfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
#define KERNEL_DATE __DATE__
3636
#define KERNEL_TIME __TIME__
3737

38-
#ifndef GIT_HASH
39-
#define GIT_HASH "dirty"
38+
#ifndef KERNEL_GIT_HASH
39+
#define KERNEL_GIT_HASH "dirty"
4040
#endif
4141

4242
#endif

src/kernel/fs/proc/version.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int proc_read_version(char* buf, size_t size)
1111
"%s %s (%s) %s\n",
1212
KERNEL_NAME,
1313
KERNEL_VERSION,
14-
GIT_HASH,
14+
KERNEL_GIT_HASH,
1515
KERNEL_TARGET);
1616

1717
return 0;

src/kernel/kmain.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void kmain_early_start()
2929
INFO("%s %s (%s) for %s has started",
3030
KERNEL_NAME,
3131
KERNEL_VERSION,
32-
GIT_HASH,
32+
KERNEL_GIT_HASH,
3333
KERNEL_TARGET);
3434
}
3535

0 commit comments

Comments
 (0)