scripts/sign-modules: Fix module signing for Debian

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-10-06 23:24:06 +00:00
parent 23f7283906
commit 8df56e2ea3

View File

@@ -11,7 +11,7 @@ scst_dir=$(dirname "$(cd "$(dirname "$0")" && pwd)")
CONFIG_MODULE_SIG_HASH=$(sed -n 's/^CONFIG_MODULE_SIG_HASH="\([^"]*\)"$/\1/p' "${KDIR}/.config")
sed -n 's,kernel/,,p' < modules.order | \
sed 's,^kernel/,,' < modules.order | \
while read -r f; do
echo "Signing $f"
"${KDIR}/scripts/sign-file" "${CONFIG_MODULE_SIG_HASH}" "${scst_dir}/scst/src/certs/scst_module_key.priv" "${scst_dir}/scst/src/certs/scst_module_key.der" "$f" || exit $?