From a2bd733e517364b6c9ddd26706d85fac09656854 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 18 Aug 2018 22:42:20 +0200 Subject: added git-revision to kernel log --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3