kernel: improve modDirVersion error message

Now prints the current modDirVersion.  Close #31887.
This commit is contained in:
Matthieu Coudron 2017-11-22 00:42:06 +09:00 committed by Vladimír Čunát
parent 8e3b8a6c2a
commit 28f9262092
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

@ -110,7 +110,7 @@ let
make $makeFlags prepare
actualModDirVersion="$(cat $buildRoot/include/config/kernel.release)"
if [ "$actualModDirVersion" != "${modDirVersion}" ]; then
echo "Error: modDirVersion specified in the Nix expression is wrong, it should be: $actualModDirVersion"
echo "Error: modDirVersion ${modDirVersion} specified in the Nix expression is wrong, it should be: $actualModDirVersion"
exit 1
fi