Commit 0e2ec103 authored by Konstantin Baev's avatar Konstantin Baev

Fix bug al testbuild feature

parent 0c1121b1
...@@ -106,7 +106,7 @@ cp %SOURCE27 %buildroot/%etercifs_src/%src_package_name-2.6.27-%src_2_6_27_versi ...@@ -106,7 +106,7 @@ cp %SOURCE27 %buildroot/%etercifs_src/%src_package_name-2.6.27-%src_2_6_27_versi
%_initdir/%name.outformat %_initdir/%name.outformat
%changelog %changelog
* Wed Nov 05 2008 Konstantin Baev <kipruss@altlinux.org> 3.7.0-alt2 * Mon Nov 03 2008 Konstantin Baev <kipruss@altlinux.org> 3.7.0-alt2
- delete last change (building module on installing rpm) - delete last change (building module on installing rpm)
- remove kernel_src.list and distr_vendor - remove kernel_src.list and distr_vendor
- code refactoring near finction.sh and buildmodule.sh - code refactoring near finction.sh and buildmodule.sh
......
...@@ -20,19 +20,21 @@ else ...@@ -20,19 +20,21 @@ else
echo "=====================================================================" echo "====================================================================="
echo "Check build etercifs module for all founded kernels" echo "Check build etercifs module for all founded kernels"
BUILTLIST= BUILTLIST=
[ -n "$KERNEL_SRC_LIST" ] || KERNEL_SRC_LIST=`readlink /lib/modules/*/build` for LM in `ls /lib/modules` ; do
for KERNSRC in $KERNEL_SRC_LIST ; do KERNSRC=`readlink /lib/modules/$LM/build`
[ -L $KERNSRC ] && [ `basename $KERNSRC` != "build" ] && continue if [ $KERNSRC ] ; then
[ -f $KERNSRC/.config ] || continue [ -L $KERNSRC ] && continue
echo "---------------------------------------------------------------------" [ -f $KERNSRC/.config ] || continue
detect_kernel echo "---------------------------------------------------------------------"
if [ -z "$KERNELVERSION" ] ; then detect_kernel
echo "Can't detect kernel version in $KERNSRC" if [ -z "$KERNELVERSION" ] ; then
else echo "Can't detect kernel version in $KERNSRC"
echo "Build for $KERNSRC (detected as $KERNELVERSION)" else
BUILTLIST="$BUILTLIST $KERNELVERSION" echo "Build for $KERNSRC (detected as $KERNELVERSION)"
compile_module BUILTLIST="$BUILTLIST $KERNELVERSION"
check_build_module compile_module
check_build_module
fi
fi fi
done done
echo "=====================================================================" echo "====================================================================="
......
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