Commit b6c15c06 authored by Vitaly Lipatov's avatar Vitaly Lipatov

print out module versing during test build, lists failed build too, fix CentOS/RHEL detecting

parent 8f26233c
...@@ -46,7 +46,7 @@ else ...@@ -46,7 +46,7 @@ else
fi fi
done done
echo "=====================================================================" echo "====================================================================="
echo "CIFS Linux kernel module built for follow kernels (marked as ---DONE):" echo "CIFS Linux kernel module $MODULENAME $MODULEVERSION built for follow kernels (marked as ---DONE or ---FAILURE):"
echo "---------------------------------------------------------------------" echo "---------------------------------------------------------------------"
for i in $BUILTLIST ; do echo " $i" ; done for i in $BUILTLIST ; do echo " $i" ; done
echo "=====================================================================" echo "====================================================================="
......
...@@ -45,10 +45,12 @@ detect_etercifs_sources() ...@@ -45,10 +45,12 @@ detect_etercifs_sources()
KERNEL_SOURCE_ETERCIFS_LINK=`ls -1 $ETERCIFS_SOURCES_LIST | grep $KERNEL | sort -r | head -n 1` KERNEL_SOURCE_ETERCIFS_LINK=`ls -1 $ETERCIFS_SOURCES_LIST | grep $KERNEL | sort -r | head -n 1`
# CentOS-RHEL specific part # CentOS-RHEL specific part
SPECIFIC_CENTOS=0 SPECIFIC_CENTOS=
grep 'CentOS' /etc/redhat-release &>/dev/null && SPECIFIC_CENTOS=1 if [ -r "/etc/redhat-release" ] ; then
grep 'Red Hat' /etc/redhat-release &>/dev/null && SPECIFIC_CENTOS=1 grep 'CentOS' /etc/redhat-release >/dev/null && SPECIFIC_CENTOS=1
if [ "$SPECIFIC_CENTOS" -eq 1 ] ; then grep 'Red Hat' /etc/redhat-release >/dev/null && SPECIFIC_CENTOS=1
fi
if [ -n "$SPECIFIC_CENTOS" ] ; then
echo echo
echo "Found CentOS or RHEL." echo "Found CentOS or RHEL."
...@@ -303,6 +305,7 @@ check_build_module() ...@@ -303,6 +305,7 @@ check_build_module()
else else
echo "can't locate built module $MODULEFILENAME" echo "can't locate built module $MODULEFILENAME"
echo "$KERNELVERSION - FAIL" echo "$KERNELVERSION - FAIL"
BUILTLIST="$BUILTLIST---FAILURE"
fi fi
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment