[PATCH u-boot v2019.04-aspeed-openbmc] tools: Disable OpenSSL deprecation warnings

Joel Stanley joel at jms.id.au
Fri Jul 15 13:33:27 AEST 2022

mkimage is linked against the host version of OpenSSL. If the distro
happens to be using OpenSSL 3.0 then several warnings about using
depreciated functions will be emitted.

 warning: ‘RSA_get0_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

These functions still work for now, so suppress the warning and delay
the need to move to the new API.

Signed-off-by: Joel Stanley <joel at jms.id.au>
The backport to move to the newer OpenSSL APIs are complicated. Instead
of focusing on fixing the old branch, work is being done to move to a
newer u-boot base.

Signed-off-by: Joel Stanley <joel at jms.id.au>
 tools/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index 81aa374a32dd..9e7a8e85435d 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -159,10 +159,12 @@ HOSTLOADLIBES_mkimage += \
 ifeq ($(HOSTOS),darwin)
 HOSTCFLAGS_mxsimage.o += -Wno-deprecated-declarations
 HOSTCFLAGS_image-sig.o += -Wno-deprecated-declarations
-HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations
+# Disable warnings on systems with OpenSSL 3.0
+HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations
 HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)

More information about the openbmc mailing list