Skip to contentSkip to conversation

tools/Makefile: get openssl CFLAGS from pkg-config

PATCH In review Pierre Bourdon 2 participants 2 messages Apr 10, 2019 – Apr 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/Makefile: get openssl CFLAGS from pkg-config

Fixes building mkimage on systems where OpenSSL header files do not live in the standard include path.

---
 tools/Makefile | 2 ++
 1 file changed, 2 insertions(+)
tools/Makefile +2 -0
index d377d85f74..12a3027e23 100644
@@ -150,6 +150,8 @@ endif
 
 # MXSImage needs LibSSL
 ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X)$(CONFIG_FIT_SIGNATURE),)
+HOSTCFLAGS_kwbimage.o += \
+	$(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "")
 HOSTLOADLIBES_mkimage += \
 	$(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto")
 
Signature · 1 line
2.19.2
#1 lore raw
Quoted 4 lines · Pierre Bourdon

Fixes building mkimage on systems where OpenSSL header files do not live in the standard include path.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190427/300c2554/attachment.sig>