summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ce360e4..cb82f68 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
ifneq ($(KERNELRELEASE),)
obj-m := lctrie.o
-ccflags-y += -DDEBUG -g -DGIT_REVISION="KBUILD_STR($(shell git --git-dir="$(M)/.git" rev-parse --short HEAD))"
+ccflags-y += -DDEBUG -g -DGIT_REVISION="KBUILD_STR($(shell git --git-dir="$(M)/.git" rev-parse --abbrev-ref HEAD):$(shell git --git-dir="$(M)/.git" rev-parse --short HEAD))"
lctrie-y := main.o routing-table.o klctrie.o
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build