Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
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
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 DEL 1ns 4cha - Software
Commits
3edba6cb
Commit
3edba6cb
authored
Jul 16, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: declare zio minimum version
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d385e6f3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
Makefile
Makefile
+2
-0
Makefile
kernel/Makefile
+4
-0
fd-zio.c
kernel/fd-zio.c
+5
-0
zio
zio
+1
-1
No files found.
Makefile
View file @
3edba6cb
FMC_BUS
:=
$(
shell
scripts/check-submodule fmc-bus
$(FMC_BUS))
ZIO
:=
$(
shell
scripts/check-submodule zio
$(ZIO))
ZIO_VERSION
=
$(
shell
cd
$(ZIO)
;
git describe
--always
--dirty
--long
--tags
)
export
ZIO_VERSION
SPEC_SW
:=
$(
shell
scripts/check-submodule spec-sw
$(SPEC_SW))
DESTDIR
?=
/usr/local
...
...
kernel/Makefile
View file @
3edba6cb
...
...
@@ -26,6 +26,10 @@ ccflags-y += \
ccflags-y
+=
-DGIT_VERSION
=
\"
$(GIT_VERSION)
\"
#ccflags-y += -DDEBUG
# Extract ZIO minimum compatible version
ccflags-y
+=
-D__ZIO_MIN_MAJOR_VERSION
=
$(
shell
echo
$(ZIO_VERSION)
|
cut
-d
'-'
-f
2 |
cut
-d
'.'
-f
1
;
)
ccflags-y
+=
-D__ZIO_MIN_MINOR_VERSION
=
$(
shell
echo
$(ZIO_VERSION)
|
cut
-d
'-'
-f
2 |
cut
-d
'.'
-f
2
;
)
subdirs-ccflags-y
=
$
(
ccflags-y
)
obj-m
:=
fmc-fine-delay.o
...
...
kernel/fd-zio.c
View file @
3edba6cb
...
...
@@ -806,6 +806,11 @@ static struct zio_driver fd_zdrv = {
},
.
id_table
=
fd_table
,
.
probe
=
fd_zio_probe
,
/* Take the version from ZIO git sub-module */
.
min_version
=
ZIO_VERSION
(
__ZIO_MIN_MAJOR_VERSION
,
__ZIO_MIN_MINOR_VERSION
,
0
),
/* Change it if you use new features from
a specific patch */
};
...
...
zio
@
3d9cee91
Subproject commit
2a5f4220fe0c3711e5690e2797d58257208a4df5
Subproject commit
3d9cee9193c7e30773747a281c6330c0b5a11439
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