From f262d2aae136d2fe60c3b7314a4a0c5f30d79062 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 13 Oct 2021 12:51:22 +0200 Subject: u-boot.mk: fix pkg-config usage Using Host/Exports doesn't work as intended, explicitly add the required vars so that u-boot finds the required libraries when building its tools. Signed-off-by: Andre Heider --- include/u-boot.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/u-boot.mk') diff --git a/include/u-boot.mk b/include/u-boot.mk index c0a1e87bf3..8c6941b88a 100644 --- a/include/u-boot.mk +++ b/include/u-boot.mk @@ -45,6 +45,9 @@ UBOOT_MAKE_FLAGS = \ HOSTCC="$(HOSTCC)" \ HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -std=gnu11" \ HOSTLDFLAGS="$(HOST_LDFLAGS)" \ + STAGING_PREFIX="$(STAGING_DIR_HOST)" \ + PKG_CONFIG_PATH="$(STAGING_DIR_HOST)/lib/pkgconfig" \ + PKG_CONFIG_LIBDIR="$(STAGING_DIR_HOST)/lib/pkgconfig" \ $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') define Build/U-Boot/Target -- cgit v1.2.3