Commit aa744d80 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix depmod after build for using KERNELVERSION

parent 39de926a
......@@ -302,12 +302,15 @@ install_module()
INSTALL_MOD_PATH=/lib/modules/$KERNELVERSION/kernel/fs/cifs
fi
test -r "$BUILDDIR/$MODULEFILENAME" || fatal "can't locate built module $MODULEFILENAME"
echo "Stripping module $MODULEFILENAME ..."
strip --strip-debug --discard-all $BUILDDIR/$MODULEFILENAME
echo "Copying built module to $INSTALL_MOD_PATH"
echo "Copying built module to $INSTALL_MOD_PATH"
mkdir -p $INSTALL_MOD_PATH
install -m 644 -o root -g root $BUILDDIR/$MODULEFILENAME $INSTALL_MOD_PATH/ || exit 1
depmod -ae || exit 1
echo "Do depmod -Ae for $KERNELVERSION kernel"
depmod -Ae $KERNELVERSION || exit 1
}
check_build_module()
......
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