diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-01-27 17:50:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-01 15:15:05 +0000 |
commit | ce46dbddef40ae3eef7238ac07438b15bd09e156 (patch) | |
tree | 9bfc164ddef9f612d33822985e182272431f4bcf /meta/classes | |
parent | 61da952fdc2996c27c56234c36116a69a23a378d (diff) | |
download | openembedded-core-ce46dbddef40ae3eef7238ac07438b15bd09e156.tar.gz openembedded-core-ce46dbddef40ae3eef7238ac07438b15bd09e156.tar.bz2 openembedded-core-ce46dbddef40ae3eef7238ac07438b15bd09e156.zip |
package bbclass: allow per package PRIVATE_LIBS
If a recipe packages multiple versions of shlib (e.g. powervr drivers) we only want the shlib code to pickup $PN, not $PN-foo subpackages.
This keeps backward compatibility with the global PRIVATE_LIBS usage if no per package PRIVATE_LIBS are set for a given package. In other words: this doesn't break the firefox recipe.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 68a2539c6f..348c13ce5e 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1326,8 +1326,8 @@ python package_do_shlibs() { needed = {} shlib_provider = {} - private_libs = d.getVar('PRIVATE_LIBS', True) for pkg in packages.split(): + private_libs = d.getVar('PRIVATE_LIBS_' + pkg, True) or d.getVar('PRIVATE_LIBS', True) needs_ldconfig = False bb.debug(2, "calculating shlib provides for %s" % pkg) |