Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
9f4c0f4d
Commit
9f4c0f4d
authored
Mar 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve build with dkms
parent
967ec4eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
buildmodule.sh
etercifs/buildmodule.sh
+1
-1
functions.sh
etercifs/functions.sh
+6
-4
No files found.
etercifs/buildmodule.sh
View file @
9f4c0f4d
...
...
@@ -11,7 +11,7 @@
.
./functions.sh
detect_host_kernel
if
[
-r
$SRC_DIR
/dkms.conf
]
&&
[
`
which dkms 2>/dev/null
`
]
;
then
if
[
-r
$SRC_DIR
/dkms.conf
]
&&
which dkms 2>/dev/null
>
/dev/null
]
;
then
echo
echo
"Building
$MODULENAME
$MODULEVERSION
for
$KERNELVERSION
Linux kernel with dkms"
dkms_build_module
...
...
etercifs/functions.sh
View file @
9f4c0f4d
...
...
@@ -288,7 +288,7 @@ detect_kernel()
detect_host_kernel
()
{
local
KV
=
"
$KERNELVERSION
"
KERNELMANUAL
=
"
$KERNSRC
$KERNELVERSION
"
[
-n
"
$KERNELVERSION
"
]
||
KERNELVERSION
=
`
uname
-r
`
kernel_release3
...
...
@@ -352,15 +352,17 @@ set_gcc()
dkms_build_module
()
{
local
DKMSOPTS
=
detect_etercifs_sources
STATUS
=
`
dkms status
-m
$MODULENAME
-v
$MODULEVERSION
`
[
"
$STATUS
"
]
||
a
=
dkms add
-m
$MODULENAME
-v
$MODULEVERSION
BUILDDIR
=
$SRC_DIR
create_builddir
||
fatal
change_cifsversion
a
=
dkms uninstall
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms build
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms
install
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
[
-n
"
$KERNELMANUAL
"
]
&&
DKMSOPTS
=
"-k
$KERNELVERSION
--kernelsourcedir=
$KERNSRC
"
a
=
dkms uninstall
$DKMSOPTS
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms build
$DKMSOPTS
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
a
=
dkms
install
$DKMSOPTS
-m
$MODULENAME
-v
$MODULEVERSION
--rpm_safe_upgrade
}
# TODO: change it in the repo!
...
...
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