Commit 6570a61c authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: get MODULE_VERSION from git hash

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent cfea5b72
......@@ -7,7 +7,9 @@ KBUILD_EXTRA_SYMBOLS := \
$(ZIO)/Module.symvers \
$(FMC_BUS)/kernel/Module.symvers
ccflags-y = \
GIT_VERSION = $(shell cd $(src); git describe --always --dirty --long --tags)
ccflags-y = -DGIT_VERSION=\"$(GIT_VERSION)\" \
-I$(ZIO)/include \
-I$(FMC_BUS)/kernel/include \
-I$M
......
......@@ -129,4 +129,4 @@ module_exit(fa_exit);
MODULE_AUTHOR("Federico Vaga");
MODULE_DESCRIPTION("FMC-ADC-100MS-14b Linux Driver");
MODULE_LICENSE("GPL");
MODULE_VERSION("0.8");
MODULE_VERSION(GIT_VERSION);
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