Files
poky/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
Maxin B. John 8557475e37 pkgconf: revert changes to pkg-config-wrapper
To maintain the status quo, revert changes to pkgconf wrappers.
This helps to keep it compatible with freedesktop.org pkg-config.

(From OE-Core rev: 8ee8eb8a15e0e4a652df3fe77805d9cffa02ed22)

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-03-04 11:35:40 +00:00

25 lines
698 B
Bash

#! /bin/sh
# Orignal pkg-config-native action when called as pkg-config-native
# NO Change here
if [ "pkg-config-native" = "`basename $0`" ] ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
unset PKG_CONFIG_SYSROOT_DIR
else
# in this case check if we are in the esdk
if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then
parentpid=`ps -o ppid= -p $$`
parentpid_info=`ps -wo comm= -o args= -p $parentpid`
# check if we are being called from the kernel's make menuconfig
if ( echo $parentpid_info | grep -q check-lxdialog ) ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
unset PKG_CONFIG_SYSROOT_DIR
fi
fi
fi
pkg-config.real "$@"