mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
linuxkm/Makefile: fix module sign-file error handling.
This commit is contained in:
committed by
Jacob Barthelmeh
parent
d869c60605
commit
742492cb5e
@@ -87,8 +87,12 @@ libwolfssl.ko.signed: libwolfssl.ko
|
|||||||
./scripts/sign-file "$${CONFIG_MODULE_SIG_HASH}" \
|
./scripts/sign-file "$${CONFIG_MODULE_SIG_HASH}" \
|
||||||
"$${CONFIG_MODULE_SIG_KEY}" \
|
"$${CONFIG_MODULE_SIG_KEY}" \
|
||||||
"$${CONFIG_MODULE_SIG_KEY/%.pem/.x509}" \
|
"$${CONFIG_MODULE_SIG_KEY/%.pem/.x509}" \
|
||||||
'$(MODULE_TOP)/$@' || \
|
'$(MODULE_TOP)/$@'; \
|
||||||
$(RM) -f '$(MODULE_TOP)/$@' || exit $$?; \
|
sign_file_exitval=$$?; \
|
||||||
|
if [[ $$sign_file_exitval != 0 ]]; then \
|
||||||
|
$(RM) -f '$(MODULE_TOP)/$@'; \
|
||||||
|
exit $$sign_file_exitval; \
|
||||||
|
fi; \
|
||||||
if [[ "$(quiet)" != "silent_" ]]; then \
|
if [[ "$(quiet)" != "silent_" ]]; then \
|
||||||
echo " Module $@ signed by $${CONFIG_MODULE_SIG_KEY}."; \
|
echo " Module $@ signed by $${CONFIG_MODULE_SIG_KEY}."; \
|
||||||
fi \
|
fi \
|
||||||
|
Reference in New Issue
Block a user