Skip to content

Commit

Permalink
kernel: rename GIT_HASH to KERNEL_GIT_HASH (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand authored Apr 4, 2022
1 parent dd5ccbd commit 81e1165
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ KERNEL_CFLAGS += -ffunction-sections -fdata-sections
KERNEL_CFLAGS += $(WERRORS)
KERNEL_CFLAGS += $(KERNEL_CONFIG)

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

DEBUG_CFLAGS += -g3 -DDEBUG_MODE
Expand Down
4 changes: 2 additions & 2 deletions include/kernel/osinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#define KERNEL_DATE __DATE__
#define KERNEL_TIME __TIME__

#ifndef GIT_HASH
#define GIT_HASH "dirty"
#ifndef KERNEL_GIT_HASH
#define KERNEL_GIT_HASH "dirty"
#endif

#endif
2 changes: 1 addition & 1 deletion src/kernel/fs/proc/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int proc_read_version(char* buf, size_t size)
"%s %s (%s) %s\n",
KERNEL_NAME,
KERNEL_VERSION,
GIT_HASH,
KERNEL_GIT_HASH,
KERNEL_TARGET);

return 0;
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/kmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void kmain_early_start()
INFO("%s %s (%s) for %s has started",
KERNEL_NAME,
KERNEL_VERSION,
GIT_HASH,
KERNEL_GIT_HASH,
KERNEL_TARGET);
}

Expand Down

0 comments on commit 81e1165

Please sign in to comment.