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
1e7f0869
Commit
1e7f0869
authored
Nov 24, 2008
by
Konstantin Baev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add checking the kernel configuration
parent
e5cf8053
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
functions.sh
etercifs/functions.sh
+18
-0
No files found.
etercifs/functions.sh
View file @
1e7f0869
...
...
@@ -154,6 +154,24 @@ compile_module()
[
-z
"
$RPM_BUILD_NCPUS
"
]
&&
RPM_BUILD_NCPUS
=
`
/usr/bin/getconf _NPROCESSORS_ONLN
`
[
"
$RPM_BUILD_NCPUS
"
-gt
1
]
&&
MAKESMP
=
"-j
$RPM_BUILD_NCPUS
"
||
MAKESMP
=
""
echo
"Checking the kernel configuration..."
if
[
-r
"
$KERNSRC
"
]
;
then
CONF_STRING
=
`
cat
$KERNSRC
/.config |
grep
CONFIG_CIFS
=
`
CONF_LETTER
=
`
echo
$CONF_STRING
|
cut
-b
13-13
`
case
"
$CONF_LETTER
"
in
"m"
)
echo
"OK"
;;
"y"
)
echo
"WARNING: the kernel is configured with cifs supporting, but not as a module!"
;;
*
)
echo
"WARNING: the kernel is configured without cifs supporting!"
esac
else
echo
"WARNING: the .config file in kernel source directory does not exist!"
fi
make
$USEGCC
-C
$KERNSRC
here
=
$BUILDDIR
SUBDIRS
=
$BUILDDIR
clean
make
$USEGCC
-C
$KERNSRC
here
=
$BUILDDIR
SUBDIRS
=
$BUILDDIR
modules
$MAKESMP
}
...
...
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