diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2017-04-07 10:38:11 +0200 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2017-05-11 11:07:01 +0200 |
commit | 405eb1640a415fd6e956e6f6fac00a39875467a4 (patch) | |
tree | df7325b27afbaa0befa6d5b9fe50d92005640486 | |
parent | 3a7b542e96977ef1472f25ccb332ceadd3f281a4 (diff) | |
download | meta-ptx-405eb1640a415fd6e956e6f6fac00a39875467a4.tar.gz meta-ptx-405eb1640a415fd6e956e6f6fac00a39875467a4.tar.xz |
barebox: fix pkg-config for host tools
PKG_CONF_PATH must be set to STAGING_DIR_NATIVE instead of
STAGING_DIR_HOST to allow building host tools with library dependencies
such as imx-usb-loader that depends on libusb.h and otherwise fails
with:
| scripts/imx/imx-usb-loader.c:33:20: fatal error: libusb.h: No such file or directory
| #include <libusb.h>
| ^
| compilation terminated.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
-rw-r--r-- | recipes-bsp/barebox/barebox.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc index 23deaf1..e717fe3 100644 --- a/recipes-bsp/barebox/barebox.inc +++ b/recipes-bsp/barebox/barebox.inc @@ -48,6 +48,7 @@ do_compile () { # Barebox uses pkg-config only for building native tools export PKG_CONFIG_LIBDIR="${STAGING_DIR_NATIVE}${libdir}/pkgconfig:${STAGING_DIR_NATIVE}/usr/share/pkgconfig" export PKG_CONFIG_SYSROOT_DIR= + export PKG_CONFIG_PATH="${STAGING_DIR_NATIVE}" export TARGETCFLAGS="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" unset LDFLAGS |