mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scripts/sign-modules: Do not try to sign modules CONFIG_MODULE_SIG=n
This fixes the build on e.g. Debian 9. See also https://sourceforge.net/p/scst/tickets/30/. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8617 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -14,6 +14,9 @@ if [ ! -e "${KDIR}/scripts/sign-file" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
[ -e "${scst_dir}/scst/src/certs/scst_module_key.priv" ] || exit 0
|
||||
[ -e "${scst_dir}/scst/src/certs/scst_module_key.der" ] || exit 0
|
||||
|
||||
CONFIG_MODULE_SIG_HASH=$(sed -n 's/^CONFIG_MODULE_SIG_HASH="\([^"]*\)"$/\1/p' "${KDIR}/.config" | { read -r line; [ -n "$line" ] && echo "$line" || echo sha256; })
|
||||
|
||||
sed 's,^kernel/,,' < modules.order | \
|
||||
|
||||
Reference in New Issue
Block a user