mirror of
https://git.yoctoproject.org/poky
synced 2026-03-03 22:09:39 +01:00
When the kernel's menuconfig target is called while using the esdk or an esdk-based container, the pkg-config info that is found is not correct. The pkg-config info is for the target, but we need the eSDK's information in order to build the host based menuconfig. The new pkg-config-esdk script checks both that it's in SDK and being called from the check-lxdialog script in order to limit the scope of when the pkg-config automagically switches to pkg-config-native. The pkg-config-esdk is only installed as pkg-config inside the eSDK, which is why we use the sstate post install script and check for if we are in the esdk environment using the WITHIN_EXT_SDK [YOCTO #11155] (From OE-Core rev: 0954452d151613fa758fbde8ee9469b30d80776b) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
698 B
Bash
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 "$@"
|