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
9b774337
Commit
9b774337
authored
Apr 17, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dkms: add generic buffers and trigger to the package
Signed-off-by:
federico.vaga@cern.ch
<
federico.vaga@cern.ch
>
parent
128419f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
Makefile
distribution/Makefile
+3
-8
dkms.conf
distribution/dkms.conf
+15
-1
No files found.
distribution/Makefile
View file @
9b774337
...
...
@@ -30,18 +30,13 @@ dkms-src: dkms-tree
@cp
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@cp
$(TOP_DIR)/distribution/module-symvers-save
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/buffers/zio-buf-kmalloc.c
$($@_dir)/buffers/
@cp
$(TOP_DIR)/drivers/zio/triggers/zio-trig-user.c
$($@_dir)/triggers/
@$(MAKE)
-C
$(TOP_DIR)/drivers/zio/
clean
@cp
-a
$(TOP_DIR)/include
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/*.[ch]
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Makefile
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Kbuild
$($@_dir)
@cp
-a
$(TOP_DIR)/drivers/zio/*
$($@_dir)
@cp
$(TOP_DIR)/LICENSES/GPL-2.0-or-later.txt
$($@_dir)/LICENSE
@sed -r -i -e "s/^GIT_VERSION\s
:
=
\s
.*/GIT_VERSION = $(VERSION)/" $($@_dir)/Makefile
@
sed
-r
-i
-e
"s/^DKMS
\s
[?]=
\s
0/DKMS ?= 1/"
$
(
$@
_dir
)
/Makefile
@
sed
-r
-i
-e
"s/^obj-[
$$
][(]CONFIG.*//"
$
(
$@
_dir
)
/Kbuild
@
sed
-r
-i
-e
"s/
\.\.\/\.\.\/
include/include/"
$
(
$@
_dir
)
/Kbuild
@
sed
-r
-i
-e
"s/
\.\.\/\.\.\/
include/include/"
$
(
$@
_dir
)
/Kbuild
$
(
$@
_dir
)
/devices/Makefile
$
(
$@
_dir
)
/buffers/Makefile
$
(
$@
_dir
)
/triggers/Makefile
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/g"
-e
"s/@PKGVER@/$(VERSION)/g"
$($@_dir)/dkms.conf
...
...
distribution/dkms.conf
View file @
9b774337
...
...
@@ -2,7 +2,21 @@ PACKAGE_NAME="@PKGNAME@"
PACKAGE_VERSION
=
"@PKGVER@"
CLEAN
=
"make clean"
MAKE
[
0
]=
"make KVERSION=$kernelver all"
BUILT_MODULE_LOCATION
[
0
]=
""
BUILT_MODULE_NAME
[
0
]=
"@PKGNAME@"
DEST_MODULE_LOCATION
[
0
]=
"/updates"
DEST_MODULE_LOCATION
[
0
]=
"/extra"
BUILT_MODULE_LOCATION
[
1
]=
"buffers"
BUILT_MODULE_NAME
[
1
]=
"@PKGNAME@-buf-vmalloc"
DEST_MODULE_LOCATION
[
1
]=
"/extra"
BUILT_MODULE_LOCATION
[
2
]=
"triggers"
BUILT_MODULE_NAME
[
2
]=
"@PKGNAME@-trig-timer"
DEST_MODULE_LOCATION
[
2
]=
"/extra"
BUILT_MODULE_LOCATION
[
3
]=
"triggers"
BUILT_MODULE_NAME
[
3
]=
"@PKGNAME@-trig-hrt"
DEST_MODULE_LOCATION
[
3
]=
"/extra"
AUTOINSTALL
=
"yes"
POST_BUILD
=
"module-symvers-save $dkms_tree"
\ No newline at end of file
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