diff options
author | Maxin B. John <maxin.john@intel.com> | 2017-08-21 18:09:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-23 12:06:51 +0100 |
commit | ee8b56528dacf9b2821d537074fa40ad2d1baa7a (patch) | |
tree | 8a784fd85801c42fda9adf8c88ebeca4304b3df9 /meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | |
parent | 96d0d4b5b671ea08cb4dcaedc84e783f253d941e (diff) | |
download | poky-ee8b56528dacf9b2821d537074fa40ad2d1baa7a.tar.gz |
pkgconf: add recipe
pkgconf is a better replacement for pkg-config. Fedora 26 replaces the
system pkg-config implementation with pkgconf because it "provides better
support for handling .pc files and a stable library ABI/API for integrating
into applications." and is actively maintained, unlike pkg-config.
pkgconf aims to offer many improvements over pkg-config such as faster/more
efficient dependency resolver which "allows for the user to more conservatively
link their binaries -- which may be helpful in some environments, such as when
prelink(1) is being used.
pkgconf also aims to provide a more complete implementation of pkg-config.
The features most likely to benefit the Yocto Project build system are the
faster/more efficient dependency resolution and linker flag optimisation.
Move pkgconf recipe to oe-core from meta-pkgconf:
https://github.com/kergoth/meta-kergoth-wip/tree/master/meta-pkgconf
Links:
1. http://pkgconf.org
2. https://fedoraproject.org/wiki/Changes/pkgconf_as_system_pkg-config_implementation
3. https://bugzilla.yoctoproject.org/show_bug.cgi?id=11308
(From OE-Core rev: 879bd0ff00ebebfdeef52c3f61597d635e040aef)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 "$@" | ||