]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/Makefile: get openssl CFLAGS from pkg-config
authorPierre Bourdon <delroth@gmail.com>
Wed, 10 Apr 2019 22:58:49 +0000 (00:58 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 26 Apr 2019 21:51:51 +0000 (17:51 -0400)
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>
tools/Makefile

index d377d85f74e7ae08a992df3ef5a05acb44e0b2a1..12a3027e234e819ec7c01f75d51396abc101d702 100644 (file)
@@ -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")