generic-poky/meta/lib/oe
Richard Purdie 8ebe7be3d9 bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory
Currently we have a hierarchy of pkgdata directories and the code has to put together
a search path and look through each in turn until it finds the data it needs.

This has lead to a number of hardcoded paths and file globing which
is unpredictable and undesirable. Worse, certain tricks that should be
easy like a GL specific package architecture become problematic with the
curretn search paths.

With the modern sstate code, we can do better and construct a single pkgdata
directory for each machine in just the same way as we do for the sysroot. This
is already tried and well tested. With such a single directory, all the code that
iterated through multiple pkgdata directories and simply be removed and give
a significant simplification of the code. Even existing build directories adapt
to the change well since the package contents doesn't change, just the location
they're installed to and the stamp for them.

The only complication is the we need a different shlibs directory for each
multilib. These are only used by package.bbclass and the simple fix is to
add MLPREFIX to the shlib directory name. This means the multilib packages will
repackage and the sstate checksum will change but an existing build directory
will adapt to the changes safely.

It is close to release however I believe the benefits this patch give us
are worth consideration for inclusion and give us more options for dealing
with problems like the GL one. It also sets the ground work well for
shlibs improvements in 1.6.

(From OE-Core rev: 1b8e4abd2d9c0901d38d89d0f944fe1ffd019379)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-09-14 08:21:00 +01:00
..
tests test_utils: import functions directly for conciseness 2013-06-07 16:48:25 +01:00
__init__.py lib/oe: Import oe lib from OE.dev 2010-05-06 12:48:05 +01:00
buildhistory_analysis.py classes/buildhistory: track contents of selected files in images 2013-05-10 11:37:16 +01:00
cachedpath.py cachedpath.py: global name 'error' is not defined 2013-05-15 19:27:11 +03:00
classextend.py lib/oe/classextend.py: avoid extending any kernel package 2013-04-05 17:36:34 +01:00
classutils.py oe.classutils: add module 2011-06-28 13:55:43 +01:00
data.py Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
distro_check.py distro_check: Remove creation of empty Meego filelist. 2013-02-12 13:22:44 +00:00
license.py meta/lib/oe: Replace StandardError with Exception 2013-05-09 14:06:51 +01:00
lsb.py lib/oe/lsb.py: fall back to /etc/os-release for host distro ID 2013-07-02 22:23:48 +01:00
maketype.py Remove a number of unneeded import os/bb calls 2012-07-19 12:24:50 +01:00
package.py package: Process package stripping in parallel 2013-02-06 13:12:59 +00:00
packagedata.py bitbake.conf/package: Collapse PKGDATA_DIR into a single machine specific directory 2013-09-14 08:21:00 +01:00
packagegroup.py oe.packagegroup: add code for package groups (sync from OE) 2011-05-20 19:07:51 +01:00
patch.py meta: Don't use deprecated bitbake API 2013-09-01 15:51:42 +01:00
path.py classes/lib: Update to use print as a function call 2013-05-09 14:06:51 +01:00
prservice.py image/kernel-module-split/eglibc-ld.inc: Remove has_key() usage 2013-05-09 14:06:51 +01:00
qa.py image/kernel-module-split/eglibc-ld.inc: Remove has_key() usage 2013-05-09 14:06:51 +01:00
sstatesig.py classes/recipes/lib: Fix various python whitespace issues 2013-05-09 14:06:51 +01:00
terminal.py lib/oe/terminal.py: add support for MATE desktop terminals 2013-07-31 06:59:55 +01:00
types.py oe.types: add 'path' type 2013-08-26 11:47:18 +01:00
utils.py utils: add trim_version() function 2013-05-30 20:59:09 +01:00