summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-18 22:42:20 +0200
committerMiguel <m.i@gmx.at>2018-08-18 22:42:20 +0200
commita2bd733e517364b6c9ddd26706d85fac09656854 (patch)
tree71598cc6af31331710ca99ae94ddd7fb3dc4c9e5 /Makefile
parent4793dda3ada333e4462a8d6faa0705d8b3ba3890 (diff)
added git-revision to kernel log
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c6a04c8..151a0a3 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@
############ compiler ############
+GIT_REVISION=$(shell git rev-parse HEAD)
+
#use our cross compiler
CC=i686-foolos-gcc
AS=i686-foolos-as
@@ -18,6 +20,7 @@ AS=i686-elf-as
############ compiler flags ############
CFLAGS=
+CFLAGS=-DGIT_REVISION=\"$(GIT_REVISION)\"
CFLAGS+=-ffreestanding # do we need this if using own compiler?
CFLAGS+=-nostdlib
CFLAGS+=-O0