Verify modules on build-time rather than failing in runtime.

This commit is contained in:
Vladimir Serbinenko 2015-12-31 13:09:15 +01:00
parent 5919626c90
commit a7cf8b1e23
7 changed files with 468 additions and 3 deletions

View file

@ -15,12 +15,12 @@ set -e
#
# Example:
#
# genmod.sh moddep.lst normal.module normal.mod
# genmod.sh moddep.lst normal.module build-grub-module-verifier normal.mod
#
moddep=$1
infile=$2
outfile=$3
outfile=$4
tmpfile=${outfile}.tmp
modname=`echo $infile | sed -e 's@\.module.*$@@'`
@ -93,4 +93,5 @@ else
-wd1106 -nu -nd $tmpfile.bin $tmpfile || exit 1
rm -f $name.bin
fi
./build-grub-module-verifier $tmpfile @target_cpu@
mv $tmpfile $outfile