Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zio
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
misc
zio
Commits
db48e6cb
Commit
db48e6cb
authored
5 years ago
by
federico.vaga@cern.ch
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop'
parents
b1999ce7
9b774337
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
distribution/Makefile
+5
-10
5 additions, 10 deletions
distribution/Makefile
distribution/dkms.conf
+16
-1
16 additions, 1 deletion
distribution/dkms.conf
distribution/module-symvers-save
+7
-0
7 additions, 0 deletions
distribution/module-symvers-save
drivers/zio/Makefile
+1
-1
1 addition, 1 deletion
drivers/zio/Makefile
with
29 additions
and
12 deletions
distribution/Makefile
+
5
−
10
View file @
db48e6cb
...
@@ -29,21 +29,16 @@ dkms-src: dkms-tree
...
@@ -29,21 +29,16 @@ dkms-src: dkms-tree
@
mkdir
-p
$(
$@
_dir
)
/triggers
@
mkdir
-p
$(
$@
_dir
)
/triggers
@cp
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@cp
$(TOP_DIR)/distribution/dkms.conf
$($@_dir)
@cp
$(TOP_DIR)/d
rivers/zio/buffers/zio-buf-kmalloc.c
$($@_dir)
/buffers/
@cp
$(TOP_DIR)/d
istribution/module-symvers-save
$($@_dir)
@
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
-a
$(TOP_DIR)/
include
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/*.[ch]
$($@_dir)
@cp
-a
$(TOP_DIR)/drivers/zio/*
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Makefile
$($@_dir)
@cp
$(TOP_DIR)/drivers/zio/Kbuild
$($@_dir)
@cp
$(TOP_DIR)/LICENSES/GPL-2.0-or-later.txt
$($@_dir)/LICENSE
@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/^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/
\.\.\/\.\.\/
include/include/"
$(
$@
_dir
)
/Kbuild
$(
$@
_dir
)
/devices/Makefile
$(
$@
_dir
)
/buffers/Makefile
$(
$@
_dir
)
/triggers/Makefile
@
sed
-r
-i
-e
"s/^obj-[
$$
][(]CONFIG.*//"
$(
$@
_dir
)
/Kbuild
@
sed
-r
-i
-e
"s/
\.\.\/\.\.\/
include/include/"
$(
$@
_dir
)
/Kbuild
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGNAME@/$(DRIVER_NAME)/g"
-e
"s/@PKGVER@/$(VERSION)/g"
$($@_dir)/dkms.conf
@sed
-r
-i
-e
"s/@PKGVER@/$(VERSION)/"
$($@_dir)/dkms.conf
dkms-add
:
dkms-src
dkms-add
:
dkms-src
...
...
This diff is collapsed.
Click to expand it.
distribution/dkms.conf
+
16
−
1
View file @
db48e6cb
...
@@ -2,6 +2,21 @@ PACKAGE_NAME="@PKGNAME@"
...
@@ -2,6 +2,21 @@ PACKAGE_NAME="@PKGNAME@"
PACKAGE_VERSION
=
"@PKGVER@"
PACKAGE_VERSION
=
"@PKGVER@"
CLEAN
=
"make clean"
CLEAN
=
"make clean"
MAKE
[
0
]=
"make KVERSION=$kernelver all"
MAKE
[
0
]=
"make KVERSION=$kernelver all"
BUILT_MODULE_LOCATION
[
0
]=
""
BUILT_MODULE_NAME
[
0
]=
"@PKGNAME@"
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"
AUTOINSTALL
=
"yes"
POST_BUILD
=
"module-symvers-save $dkms_tree"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
distribution/module-symvers-save
0 → 100755
+
7
−
0
View file @
db48e6cb
#!/bin/sh
dkms_tree
=
$1
SRC_DIR
=
$dkms_tree
/
$module
/
$module_version
/build/
DST_DIR
=
$dkms_tree
/
$module
/
$module_version
/
$kernelver
/
$arch
/module/
cp
-f
${
SRC_DIR
}
/Module.symvers
${
DST_DIR
}
>
/dev/null
This diff is collapsed.
Click to expand it.
drivers/zio/Makefile
+
1
−
1
View file @
db48e6cb
...
@@ -26,5 +26,5 @@ export CONFIG_ZIO_TRIGGERS
...
@@ -26,5 +26,5 @@ export CONFIG_ZIO_TRIGGERS
all
:
modules
all
:
modules
modules coccicheck modules_install
:
modules coccicheck modules_install
clean
:
$(
MAKE
)
-C
$(
LINUX
)
M
=
$(
shell /bin/pwd
)
$@
$(
MAKE
)
-C
$(
LINUX
)
M
=
$(
shell /bin/pwd
)
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment