summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2021-10-25 12:27:59 +0100
committerRoss Burton <ross.burton@arm.com>2021-12-08 12:01:58 +0000
commit0a956f81805b46b1530f30dd79d16950dc491a7b (patch)
tree86a86d66701dea159882c6b883d9c663a6d106f6 /tools
parent73193689c0e9cf13ad0ddbb9da25e9a66c4e14b3 (diff)
downloadarm-trusted-firmware-0a956f81805b46b1530f30dd79d16950dc491a7b.tar.gz
fix(fiptool): respect OPENSSL_DIR
fiptool links to libcrypto, so as with the other tools it should respect OPENSSL_DIR for include/library paths. Change-Id: Icd8c15fa5097db1da9a3a9222d9e267548c4c7e2 Signed-off-by: Ross Burton <ross.burton@arm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/fiptool/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/fiptool/Makefile b/tools/fiptool/Makefile
index 11d2e7b0b..7c2a08379 100644
--- a/tools/fiptool/Makefile
+++ b/tools/fiptool/Makefile
@@ -12,6 +12,8 @@ FIPTOOL ?= fiptool${BIN_EXT}
PROJECT := $(notdir ${FIPTOOL})
OBJECTS := fiptool.o tbbr_config.o
V ?= 0
+OPENSSL_DIR := /usr
+
override CPPFLAGS += -D_GNU_SOURCE -D_XOPEN_SOURCE=700
HOSTCCFLAGS := -Wall -Werror -pedantic -std=c99
@@ -20,7 +22,7 @@ ifeq (${DEBUG},1)
else
HOSTCCFLAGS += -O2
endif
-LDLIBS := -lcrypto
+LDLIBS := -L${OPENSSL_DIR}/lib -lcrypto
ifeq (${V},0)
Q := @
@@ -28,7 +30,7 @@ else
Q :=
endif
-INCLUDE_PATHS := -I../../include/tools_share
+INCLUDE_PATHS := -I../../include/tools_share -I${OPENSSL_DIR}/include
HOSTCC ?= gcc