summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2019-04-11 00:58:49 +0200
committerTom Rini <trini@konsulko.com>2019-04-26 17:51:51 -0400
commit9bdfe290e9796dcbb87e3a079730391886a0099d (patch)
tree5b5e7b2e2d6074a504828bc8b40954643fa47be6
parent3174cafd9cbc130bfecc5b0097bdd0eb0749b73c (diff)
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. Signed-off-by: Pierre Bourdon <delroth@gmail.com>
-rw-r--r--tools/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index d377d85f74..12a3027e23 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -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")