diff mbox

[U-Boot,1/4] tools: -Wno-deprecated-declarations for OpenSSL on darwin

Message ID 1455661771-52559-2-git-send-email-andreas.devel@googlemail.com
State Accepted
Commit c6e3e8213aa715160067a9c9964a756d382a6314
Delegated to: Tom Rini
Headers show

Commit Message

Andreas Bießmann Feb. 16, 2016, 10:29 p.m. UTC
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 <andreas.devel@googlemail.com>
---

 tools/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Simon Glass Feb. 17, 2016, 7 p.m. UTC | #1
On 16 February 2016 at 15:29, Andreas Bießmann
<andreas.devel@googlemail.com> wrote:
> 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 <andreas.devel@googlemail.com>
> ---
>
>  tools/Makefile | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Feb. 25, 2016, 3:23 p.m. UTC | #2
On Tue, Feb 16, 2016 at 11:29:28PM +0100, Andreas Bießmann wrote:

> 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 <andreas.devel@googlemail.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/tools/Makefile b/tools/Makefile
index 1382b05..2881a7c 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)