From: Andreas Bießmann Date: Tue, 16 Feb 2016 22:29:28 +0000 (+0100) Subject: tools: -Wno-deprecated-declarations for OpenSSL on darwin X-Git-Tag: v2016.03-rc3~50 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c6e3e8213aa715160067a9c9964a756d382a6314;p=u-boot tools: -Wno-deprecated-declarations for OpenSSL on darwin Since OpenSSL is deprecated on OS X in favour of Common Crypto API disable the warning for this host OS. Another solution would be to add some glue layer for crypto stuff, but I think this is not worth the effort. Signed-off-by: Andreas Bießmann Reviewed-by: Simon Glass --- diff --git a/tools/Makefile b/tools/Makefile index 1382b0562e..2881a7c439 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -129,6 +129,14 @@ endif ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),) HOSTLOADLIBES_mkimage += \ $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto") + +# OS X deprecate openssl in favour of CommonCrypto, supress deprecation +# warnings on those systems +ifeq ($(HOSTOS),darwin) +HOSTCFLAGS_mxsimage.o += -Wno-deprecated-declarations +HOSTCFLAGS_image-sig.o += -Wno-deprecated-declarations +HOSTCFLAGS_rsa-sign.o += -Wno-deprecated-declarations +endif endif HOSTLOADLIBES_dumpimage := $(HOSTLOADLIBES_mkimage)