diff options
author | Raymond Mao <raymond.mao@linaro.org> | 2025-03-27 16:10:44 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-10 11:58:02 -0600 |
commit | dc54d1e48052fe8712f68a8fcbe324602c7935e8 (patch) | |
tree | 4421162125867e75a7e0e80c54c9f7b199ef2301 | |
parent | 3c6a3e99b398558b6bfb1362a44fbf0e07e2539e (diff) |
tools: add pkg-config for preload_check_sign
The cflags and ldflags of preload_check_sign depend on the openssl
package thus pkg-config is needed to get the location where openssl
is installed.
This fix a potential build failure when openssl is not from the
distro and installed in a varied place.
Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
-rw-r--r-- | tools/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile index 53b87d22a80..d0e4d2d16c3 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -169,6 +169,8 @@ fit_check_sign-objs := $(dumpimage-mkimage-objs) fit_check_sign.o fdt_add_pubkey-objs := $(dumpimage-mkimage-objs) fdt_add_pubkey.o file2include-objs := file2include.o preload_check_sign-objs := $(dumpimage-mkimage-objs) $(PRELOAD_OBJS-y) preload_check_sign.o +HOSTCFLAGS_preload_check_sign.o += \ + $(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "") ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_TOOLS_LIBCRYPTO),) # Add CFG_MXS into host CFLAGS, so we can check whether or not register @@ -207,6 +209,8 @@ HOSTLDLIBS_fit_info := $(HOSTLDLIBS_mkimage) HOSTLDLIBS_fit_check_sign := $(HOSTLDLIBS_mkimage) HOSTLDLIBS_fdt_add_pubkey := $(HOSTLDLIBS_mkimage) HOSTLDLIBS_preload_check_sign := $(HOSTLDLIBS_mkimage) +HOSTLDLIBS_preload_check_sign += \ + $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto") hostprogs-$(CONFIG_EXYNOS5250) += mkexynosspl hostprogs-$(CONFIG_EXYNOS5420) += mkexynosspl |