mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
Merge the trunk's rrs 3438:3445, 3447:3450, 3452:3456 and 3458:3466
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -414,15 +414,18 @@ function compile_kernel {
|
||||
local subdir="$2"
|
||||
|
||||
echo "Compiling the patched kernel ..."
|
||||
(
|
||||
cd "${outputdir}/linux-$1" \
|
||||
&& make -s prepare \
|
||||
&& make -s scripts \
|
||||
&& LC_ALL=C make -k M="${subdir}"
|
||||
) &> "${outputfile}"
|
||||
local errors=$(grep -c ' error:' "${outputfile}")
|
||||
local warnings=$(grep -c ' warning:' "${outputfile}")
|
||||
echo "${errors} errors / ${warnings} warnings."
|
||||
if (cd "${outputdir}/linux-$1" \
|
||||
&& make -s prepare \
|
||||
&& make -s scripts \
|
||||
&& LC_ALL=C make -k M="${subdir}"
|
||||
) &> "${outputfile}"
|
||||
then
|
||||
local errors=$(grep -c ' error:' "${outputfile}")
|
||||
local warnings=$(grep -c ' warning:' "${outputfile}")
|
||||
echo "${errors} errors / ${warnings} warnings."
|
||||
else
|
||||
echo FAILED
|
||||
fi
|
||||
cat "${outputfile}" | grep -E 'warning:|error:' | sort | uniq -c
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user