Commit 6266f55a authored by Federico Vaga's avatar Federico Vaga

Makefile: add GIT_VERSION

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 0dacf4c4
......@@ -5,7 +5,9 @@ SPEC ?= $(M)/../spec-sw
KBUILD_EXTRA_SYMBOLS := $(ZIO)/Module.symvers $(SPEC)/kernel/Module.symvers $(FMC_BUS)/kernel/Module.symvers
ccflags-y = -I$(ZIO)/include -I$M -I$(FMC_BUS)/kernel/include -I$(FMC_BUS)/kernel/include/linux -I$(FMC_BUS)/sdb-lib -I$(SPEC)/kernel
GIT_VERSION = $(shell cd $(src); git describe --always --dirty --long --tags)
ccflags-y = -DGIT_VERSION=\"$(GIT_VERSION)\" -I$(ZIO)/include -I$M -I$(FMC_BUS)/kernel/include -I$(FMC_BUS)/kernel/include/linux -I$(FMC_BUS)/sdb-lib -I$(SPEC)/kernel
#ccflags-y += -DDEBUG
......
......@@ -390,4 +390,5 @@ static void ft_exit(void)
module_init(ft_init);
module_exit(ft_exit);
MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL and additional rights"); /* LGPL */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment