Skip to content
Snippets Groups Projects
Commit 3bb68100 authored by Alexey Lyashkov's avatar Alexey Lyashkov
Browse files

check both names for symver file.

parent 34c69e33
No related branches found
No related tags found
No related merge requests found
......@@ -576,15 +576,21 @@ else
O2IBLND=""
O2IBCPPFLAGS=""
])
# we know at this point that the found OFED source is good
if test \( $ENABLEO2IB = 3 \); then
if test \( -f $O2IBPATH/Module.symvers \); then
O2IB_SYMVER=""
if test $ENABLEO2IB -eq 3 ; then
# OFED default rpm not handle sles10 Modules.symvers name
for name in Module.symvers Modules.symvers; do
if test -f $O2IBPATH/$name; then
O2IB_SYMVER=$name;
break;
fi
done
if test -n $O2IB_SYMVER ; then
AC_MSG_NOTICE([adding $O2IBPATH/Module.symvers to $PWD/$SYMVERFILE])
# strip out the existing symbols versions first
touch $O2IBPATH/Module.symvers
egrep -v $(echo $(awk '{ print $2 }' $O2IBPATH/Module.symvers) | tr ' ' '|') $PWD/$SYMVERFILE > $PWD/$SYMVERFILE.old
cat $PWD/$SYMVERFILE.old $O2IBPATH/Module.symvers > $PWD/$SYMVERFILE
egrep -v $(echo $(awk '{ print $2 }' $O2IBPATH/$O2IB_SYMVER) | tr ' ' '|') $PWD/$SYMVERFILE > $PWD/$SYMVERFILE.old
cat $PWD/$SYMVERFILE.old $O2IBPATH/$O2IB_SYMVER > $PWD/$SYMVERFILE
else
AC_MSG_ERROR([an external source tree was specified for o2iblnd however I could not find a $O2IBPATH/Module.symvers there])
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment