Commit 2dfea741 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 5ec0db53
......@@ -16,6 +16,13 @@ obj-m += triggers/
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
# WARNING: the line below doesn't work in-kernel if you compile with O=
ccflags-y += -I$(src)/include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
......
......@@ -2,6 +2,13 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
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
ccflags-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
......
......@@ -486,3 +486,5 @@ module_exit(zbk_exit);
MODULE_AUTHOR("Alessandro Rubini");
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -178,3 +178,5 @@ MODULE_AUTHOR("Federico Vaga and Alessandro Rubini");
/* Federico wrote the core, Alessandro wrote default trigger and buffer */
MODULE_DESCRIPTION("ZIO - ZIO Input Output");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -2,6 +2,13 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
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
ccflags-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
......
......@@ -425,3 +425,5 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Federico Vaga <federico.vaga@gmail.com>");
MODULE_DESCRIPTION("AD788x driver for ZIO framework");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -158,3 +158,4 @@ module_exit(zdtc_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -216,3 +216,5 @@ module_exit(zgp_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -250,3 +250,4 @@ module_exit(ztdc_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -518,3 +518,5 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Alessandro Rubini <rubini@.com>");
MODULE_DESCRIPTION("A zio driver which loops back to zio or a chardev");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -139,3 +139,5 @@ module_exit(zmini_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_LICENSE("GPL and additional rights");
CERN_SUPER_MODULE;
......@@ -601,3 +601,5 @@ MODULE_AUTHOR("Federico Vaga <federico.vaga@gmail.com>");
MODULE_VERSION(GIT_VERSION);
MODULE_DESCRIPTION("A zio driver for Velleman USB board K8055");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -253,3 +253,5 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Federico Vaga <federico.vaga@gmail.com>");
MODULE_DESCRIPTION("A zio driver which fakes zero, random and sawtooth input");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -2,6 +2,13 @@ LINUX ?= /lib/modules/$(shell uname -r)/build
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
ccflags-y += -I$(src)/../include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
ccflags-$(CONFIG_ZIO_DEBUG) += -DDEBUG
......
......@@ -298,3 +298,5 @@ module_exit(ztt_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Alessandro Rubini");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -198,3 +198,5 @@ module_exit(zti_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Alessandro Rubini");
MODULE_LICENSE("GPL");
CERN_SUPER_MODULE;
......@@ -242,3 +242,5 @@ module_exit(ztt_exit);
MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR("Alessandro Rubini");
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