Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
FMC ADC 100M 14b 4cha - Software
Commits
1b8b44f7
Commit
1b8b44f7
authored
Oct 27, 2015
by
Adam Wujek
💬
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
6166cc8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
Kbuild
kernel/Kbuild
+12
-5
Makefile
kernel/Makefile
+8
-1
fa-core.c
kernel/fa-core.c
+1
-1
No files found.
kernel/Kbuild
View file @
1b8b44f7
...
...
@@ -4,12 +4,19 @@ KBUILD_EXTRA_SYMBOLS := \
$(ZIO_ABS)/Module.symvers \
$(FMC_BUS_ABS)/kernel/Module.symvers
# 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
# add versions of used submodules
SUBMODULE_VERSIONS += MODULE_INFO(version_fmc_bus,\"$(FMC_BUS_VERSION)\");
SUBMODULE_VERSIONS += MODULE_INFO(version_zio,\"$(ZIO_VERSION)\");
SUBMODULE_VERSIONS += MODULE_INFO(version_spec_sw,\"$(SPEC_SW_VERSION)\");
SUBMODULE_VERSIONS += MODULE_INFO(version_svec_sw,\"$(SVEC_SW_VERSION)\");
ccflags-y += -DADDITIONAL_VERSIONS="$(SUBMODULE_VERSIONS)"
# The library includes <sdb.h>, so point -I directtly there
# include our header before to avoid conflicts with the kernel
...
...
kernel/Makefile
View file @
1b8b44f7
...
...
@@ -20,8 +20,15 @@ SVEC_SW_ABS ?= $(abspath $(SVEC_SW) )
GIT_VERSION
=
$(
shell
git describe
--always
--dirty
--long
--tags
)
export
GIT_VERSION
ZIO_VERSION
=
$(
shell
cd
$(ZIO_ABS)
;
git describe
--always
--dirty
--long
--tags
)
FMC_BUS_VERSION
?=
$(
shell
cd
$(FMC_BUS_ABS)
;
git describe
--always
--dirty
--long
--tags
)
ZIO_VERSION
?=
$(
shell
cd
$(ZIO_ABS)
;
git describe
--always
--dirty
--long
--tags
)
SPEC_SW_VERSION
?=
$(
shell
cd
$(SPEC_SW_ABS)
;
git describe
--always
--dirty
--long
--tags
)
SVEC_SW_VERSION
?=
$(
shell
cd
$(SVEC_SW_ABS)
;
git describe
--always
--dirty
--long
--tags
)
export
FMC_BUS_VERSION
export
ZIO_VERSION
export
SPEC_SW_VERSION
export
SVEC_SW_VERSION
all modules
:
$(MAKE)
-C
$(LINUX)
M
=
$(CURDIR)
FMC_BUS_ABS
=
$(FMC_BUS_ABS)
\
...
...
kernel/fa-core.c
View file @
1b8b44f7
...
...
@@ -637,4 +637,4 @@ MODULE_DESCRIPTION("FMC-ADC-100MS-14b Linux Driver");
MODULE_LICENSE
(
"GPL"
);
MODULE_VERSION
(
GIT_VERSION
);
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