Commit 7ea88832 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Federico Vaga

drivers: use CERN_SUPER_MODULE trick

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent e87f0f24
...@@ -17,6 +17,13 @@ fmc-y += fmc-dump.o ...@@ -17,6 +17,13 @@ fmc-y += fmc-dump.o
GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags) GIT_VERSION = $(shell cd $(src); git describe --dirty --long --tags)
# For this CSM_VERSION, please see ohwr.org/csm documentation
ifdef CONFIG_CSM_VERSION
ccflags-y += -D"CERN_SUPER_MODULE=MODULE_VERSION(\"$(CONFIG_CSM_VERSION)\")"
else
ccflags-y += -DCERN_SUPER_MODULE=""
endif
# The library includes <sdb.h>, so point -I directtly there # The library includes <sdb.h>, so point -I directtly there
ccflags-y += -I$(src)/include/linux -DGIT_VERSION=\"$(GIT_VERSION)\" ccflags-y += -I$(src)/include/linux -DGIT_VERSION=\"$(GIT_VERSION)\"
......
...@@ -201,3 +201,5 @@ module_exit(fc_exit); ...@@ -201,3 +201,5 @@ module_exit(fc_exit);
MODULE_VERSION(GIT_VERSION); MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
...@@ -303,3 +303,5 @@ module_exit(fmc_exit); ...@@ -303,3 +303,5 @@ module_exit(fmc_exit);
MODULE_VERSION(GIT_VERSION); MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
...@@ -348,3 +348,5 @@ module_exit(ff_exit); ...@@ -348,3 +348,5 @@ module_exit(ff_exit);
MODULE_VERSION(GIT_VERSION); MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL and additional rights"); MODULE_LICENSE("GPL and additional rights");
CERN_SUPER_MODULE;
...@@ -100,3 +100,5 @@ module_exit(t_exit); ...@@ -100,3 +100,5 @@ module_exit(t_exit);
MODULE_VERSION(GIT_VERSION); MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL and additional rights"); /* public domain */ MODULE_LICENSE("GPL and additional rights"); /* public domain */
CERN_SUPER_MODULE;
...@@ -175,3 +175,5 @@ module_exit(fwe_exit); ...@@ -175,3 +175,5 @@ module_exit(fwe_exit);
MODULE_VERSION(GIT_VERSION); MODULE_VERSION(GIT_VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
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