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

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

No files matched your search

+3 -2
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