From 69e21d068a6d1a38fc20a80b684873fbb7093f65 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 26 Jan 2023 10:34:57 +0100 Subject: u-boot: do not use pkg-config to avoid linking error with target libs --- package/u-boot/patches/patch-tools_Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 package/u-boot/patches/patch-tools_Makefile (limited to 'package/u-boot/patches/patch-tools_Makefile') diff --git a/package/u-boot/patches/patch-tools_Makefile b/package/u-boot/patches/patch-tools_Makefile new file mode 100644 index 000000000..505ea209a --- /dev/null +++ b/package/u-boot/patches/patch-tools_Makefile @@ -0,0 +1,14 @@ +--- u-boot-2022.10.orig/tools/Makefile 2022-10-03 21:25:32.000000000 +0200 ++++ u-boot-2022.10/tools/Makefile 2023-01-26 10:01:05.399923828 +0100 +@@ -174,9 +174,9 @@ endif + # MXSImage needs LibSSL + ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_ARMADA_38X)$(CONFIG_TOOLS_LIBCRYPTO),) + HOSTCFLAGS_kwbimage.o += \ +- $(shell pkg-config --cflags libssl libcrypto 2> /dev/null || echo "") ++ $(shell echo "-lssl -lcrypto") + HOSTLDLIBS_mkimage += \ +- $(shell pkg-config --libs libssl libcrypto 2> /dev/null || echo "-lssl -lcrypto") ++ $(shell echo "-lssl -lcrypto") + + # OS X deprecate openssl in favour of CommonCrypto, supress deprecation + # warnings on those systems -- cgit v1.2.3