diff options
Diffstat (limited to 'meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in')
-rw-r--r-- | meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in new file mode 100644 index 0000000000..4fc9b0a4a7 --- /dev/null +++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | |||
@@ -0,0 +1,24 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # Orignal pkg-config-native action when called as pkg-config-native | ||
4 | # NO Change here | ||
5 | if [ "pkg-config-native" = "`basename $0`" ] ; then | ||
6 | PKG_CONFIG_PATH="@PATH_NATIVE@" | ||
7 | PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@" | ||
8 | unset PKG_CONFIG_SYSROOT_DIR | ||
9 | else | ||
10 | # in this case check if we are in the esdk | ||
11 | if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then | ||
12 | parentpid=`ps -o ppid= -p $$` | ||
13 | parentpid_info=`ps -wo comm= -o args= -p $parentpid` | ||
14 | |||
15 | # check if we are being called from the kernel's make menuconfig | ||
16 | if ( echo $parentpid_info | grep -q check-lxdialog ) ; then | ||
17 | PKG_CONFIG_PATH="@PATH_NATIVE@" | ||
18 | PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@" | ||
19 | unset PKG_CONFIG_SYSROOT_DIR | ||
20 | fi | ||
21 | fi | ||
22 | fi | ||
23 | |||
24 | pkg-config.real "$@" | ||