Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
3f42d791
Commit
3f42d791
authored
Oct 27, 2015
by
Adam Wujek
💬
Committed by
Federico Vaga
Nov 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: add versions of used submodules to the kernel module
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
50139f29
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
41 additions
and
33 deletions
+41
-33
Kbuild
Kbuild
+7
-5
Makefile
buffers/Makefile
+7
-5
zio-buf-vmalloc.c
buffers/zio-buf-vmalloc.c
+1
-1
core.c
core.c
+1
-1
Makefile
drivers/Makefile
+7
-5
zio-ad788x.c
drivers/zio-ad788x.c
+1
-1
zio-fake-dtc.c
drivers/zio-fake-dtc.c
+1
-1
zio-gpio.c
drivers/zio-gpio.c
+1
-1
zio-irq-tdc.c
drivers/zio-irq-tdc.c
+1
-1
zio-loop.c
drivers/zio-loop.c
+1
-1
zio-mini.c
drivers/zio-mini.c
+1
-1
zio-vmk8055.c
drivers/zio-vmk8055.c
+1
-1
zio-zero.c
drivers/zio-zero.c
+1
-1
Makefile
triggers/Makefile
+7
-5
zio-trig-hrt.c
triggers/zio-trig-hrt.c
+1
-1
zio-trig-irq.c
triggers/zio-trig-irq.c
+1
-1
zio-trig-timer.c
triggers/zio-trig-timer.c
+1
-1
No files found.
Kbuild
View file @
3f42d791
...
...
@@ -16,12 +16,14 @@ obj-m += triggers/
# src is defined byt the kernel Makefile, but we want to use it also in our
# local Makefile (tools, lib)
# 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=""
# add versions of supermodule
ifdef CONFIG_SUPER_REPO
ifdef CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS += MODULE_INFO(version_$(CONFIG_SUPER_REPO),\"$(CONFIG_SUPER_REPO_VERSION)\");
endif
endif
ccflags-y += -DADDITIONAL_VERSIONS="$(SUBMODULE_VERSIONS)"
# WARNING: the line below doesn't work in-kernel if you compile with O=
ccflags-y += -I$(src)/include/ -DGIT_VERSION=\"$(GIT_VERSION)\"
...
...
buffers/Makefile
View file @
3f42d791
# 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
=
""
# add versions of supermodule
ifdef
CONFIG_SUPER_REPO
ifdef
CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS
+=
MODULE_INFO
(
version_
$(CONFIG_SUPER_REPO)
,
\"
$(CONFIG_SUPER_REPO_VERSION)
\"
)
;
endif
endif
ccflags-y
+=
-DADDITIONAL_VERSIONS
=
"
$(SUBMODULE_VERSIONS)
"
ccflags-y
+=
-I
$(src)
/../include/
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
ccflags-$(CONFIG_ZIO_DEBUG)
+=
-DDEBUG
...
...
buffers/zio-buf-vmalloc.c
View file @
3f42d791
...
...
@@ -514,4 +514,4 @@ MODULE_AUTHOR("Alessandro Rubini");
MODULE_VERSION
(
GIT_VERSION
);
/* Defined in local Makefile */
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
core.c
View file @
3f42d791
...
...
@@ -182,4 +182,4 @@ MODULE_AUTHOR("Federico Vaga and Alessandro Rubini");
MODULE_DESCRIPTION
(
"ZIO - ZIO Input Output"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/Makefile
View file @
3f42d791
# 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
=
""
# add versions of supermodule
ifdef
CONFIG_SUPER_REPO
ifdef
CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS
+=
MODULE_INFO
(
version_
$(CONFIG_SUPER_REPO)
,
\"
$(CONFIG_SUPER_REPO_VERSION)
\"
)
;
endif
endif
ccflags-y
+=
-DADDITIONAL_VERSIONS
=
"
$(SUBMODULE_VERSIONS)
"
ccflags-y
+=
-I
$(src)
/../include/
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
ccflags-y
+=
$(ZIO_VERSION)
...
...
drivers/zio-ad788x.c
View file @
3f42d791
...
...
@@ -431,4 +431,4 @@ MODULE_AUTHOR("Federico Vaga <federico.vaga@gmail.com>");
MODULE_DESCRIPTION
(
"AD788x driver for ZIO framework"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-fake-dtc.c
View file @
3f42d791
...
...
@@ -163,4 +163,4 @@ module_exit(zdtc_exit);
MODULE_VERSION
(
GIT_VERSION
);
/* Defined in local Makefile */
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-gpio.c
View file @
3f42d791
...
...
@@ -222,4 +222,4 @@ module_exit(zgp_exit);
MODULE_VERSION
(
GIT_VERSION
);
/* Defined in local Makefile */
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-irq-tdc.c
View file @
3f42d791
...
...
@@ -255,4 +255,4 @@ module_exit(ztdc_exit);
MODULE_VERSION
(
GIT_VERSION
);
/* Defined in local Makefile */
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-loop.c
View file @
3f42d791
...
...
@@ -524,4 +524,4 @@ 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
;
ADDITIONAL_VERSIONS
;
drivers/zio-mini.c
View file @
3f42d791
...
...
@@ -145,4 +145,4 @@ module_exit(zmini_exit);
MODULE_VERSION
(
GIT_VERSION
);
/* Defined in local Makefile */
MODULE_LICENSE
(
"GPL and additional rights"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-vmk8055.c
View file @
3f42d791
...
...
@@ -607,4 +607,4 @@ MODULE_VERSION(GIT_VERSION);
MODULE_DESCRIPTION
(
"A zio driver for Velleman USB board K8055"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
drivers/zio-zero.c
View file @
3f42d791
...
...
@@ -259,4 +259,4 @@ 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
;
ADDITIONAL_VERSIONS
;
triggers/Makefile
View file @
3f42d791
# 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
=
""
# add versions of supermodule
ifdef
CONFIG_SUPER_REPO
ifdef
CONFIG_SUPER_REPO_VERSION
SUBMODULE_VERSIONS
+=
MODULE_INFO
(
version_
$(CONFIG_SUPER_REPO)
,
\"
$(CONFIG_SUPER_REPO_VERSION)
\"
)
;
endif
endif
ccflags-y
+=
-DADDITIONAL_VERSIONS
=
"
$(SUBMODULE_VERSIONS)
"
ccflags-y
+=
-I
$(src)
/../include/
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
ccflags-$(CONFIG_ZIO_DEBUG)
+=
-DDEBUG
...
...
triggers/zio-trig-hrt.c
View file @
3f42d791
...
...
@@ -299,4 +299,4 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR
(
"Alessandro Rubini"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
triggers/zio-trig-irq.c
View file @
3f42d791
...
...
@@ -188,4 +188,4 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR
(
"Alessandro Rubini"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
triggers/zio-trig-timer.c
View file @
3f42d791
...
...
@@ -232,4 +232,4 @@ MODULE_VERSION(GIT_VERSION); /* Defined in local Makefile */
MODULE_AUTHOR
(
"Alessandro Rubini"
);
MODULE_LICENSE
(
"GPL"
);
CERN_SUPER_MODULE
;
ADDITIONAL_VERSIONS
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment