diff options
| author | Miguel <m.i@gmx.at> | 2018-08-18 22:42:20 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-18 22:42:20 +0200 |
| commit | a2bd733e517364b6c9ddd26706d85fac09656854 (patch) | |
| tree | 71598cc6af31331710ca99ae94ddd7fb3dc4c9e5 /Makefile | |
| parent | 4793dda3ada333e4462a8d6faa0705d8b3ba3890 (diff) | |
added git-revision to kernel log
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
