generic-poky/bitbake/lib/bb
Paul Eggleton a3967e2ba5 bitbake: bitbake-layers: fix mapping files to layers
bitbake-layers needs to map recipe and class files to the layer they
came from within the show-recipes and show-overlayed commands. However,
it turns out that mapping a file to the layer it came from is not as
trivial as it might seem. To do it properly we need to match the path to
an entry in BBFILES then map that to the collection name using
BBFILE_PATTERN, then map that to the actual layer using variable
history. If it doesn't match any entry in BBFILES, then we can fall back
to BBFILE_PATTERN (to handle classes and conf files).

This fixes the layer name not showing up properly in the output of the
show-recipes and show-overlayed commands for recipes in layers such as
meta-intel that have subdirectories in BBFILE_PATTERN. It also fixes the
priority not showing up in show-layers for such layers.

As part of this I've added a function to VariableHistory which for a
space-separated list variable gives you a dict mapping the items added
to the files in which they were added. I've also fixed
bb.utils.get_file_layer() and reduced some of the duplication by using
this function in bitbake-layers. Also fixes the priority not showing up
for layers such as meta-intel

Fixes [YOCTO #8160].

(Bitbake rev: e852f6cabd7489585477ab567a1afeb2252377ac)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-19 18:05:49 +01:00
..
fetch2 bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
parse bitbake: lib/bb/parse: properly handle OSError when updating mtime cache 2015-08-19 18:05:48 +01:00
pysh bitbake: lib: fix no newline at end of file 2014-07-04 09:28:36 +01:00
server bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
tests bitbake: tests/parse: Add BBCLASSEXTEND multiple data store corruption reproducer 2015-07-23 08:48:41 +01:00
ui bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
COW.py Apply some 2to3 refactorings 2010-07-02 15:41:37 +01:00
__init__.py bitbake: lib/bb: provide mechanism to bypass UI log suppression 2015-07-16 15:09:26 +01:00
build.py bitbake: build: Exit scripts with result of last shell function 2015-07-27 23:29:16 +01:00
cache.py bitbake: cache: Clean up getVar usage to modern syntax/style 2015-05-26 10:33:06 +01:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
checksum.py bitbake: implement checksums for local files in SRC_URI 2012-05-23 11:35:04 +01:00
codeparser.py bitbake: codeparser: Add repr() methods 2015-06-27 22:51:21 +01:00
command.py bitbake: command: ensure sync commands that read configuration see updates 2015-08-19 18:05:45 +01:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: cooker: drop appendlist 2015-08-19 18:05:46 +01:00
cookerdata.py bitbake: cooker: ensure prefile/postfile can work in memory resident mode 2015-08-19 18:05:45 +01:00
daemonize.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
data.py bitbake: data_smart: Improve override history logging 2015-07-24 23:28:35 +01:00
data_smart.py bitbake: bitbake-layers: fix mapping files to layers 2015-08-19 18:05:49 +01:00
event.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
exceptions.py bitbake/exceptions: Handle reports from the field of exception code failures 2012-05-25 11:15:12 +01:00
main.py bitbake: lib/bb/main: consolidate UI/server extension listing and loading 2015-08-19 18:05:48 +01:00
methodpool.py bitbake: methodpool: Retire it, remove global method scope 2013-05-24 10:34:52 +01:00
monitordisk.py bitbake: monitordisk: don't log when not monitoring a filesystem for inodes 2014-09-29 12:08:48 +01:00
msg.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: persist_data: Avoid fsync() calls 2014-05-03 11:24:48 +01:00
process.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
providers.py bitbake: providers/runqueue/taskdata: Optimise logger.debug calls 2014-03-10 11:10:00 -07:00
runqueue.py bitbake: runqueue.py: Add provides to taskdepdata 2015-08-10 13:57:59 -07:00
shell.py Introduce new param caches_array into Cache impl. 2011-06-07 22:39:52 +01:00
siggen.py bitbake: siggen: Don't crash if number of task dependencies change 2015-05-26 10:33:06 +01:00
taskdata.py bitbake: Fix default function parameter assignment to a list 2015-08-19 18:05:44 +01:00
tinfoil.py bitbake: cooker: properly fix bitbake.lock handling 2015-08-01 07:34:09 +01:00
utils.py bitbake: bitbake-layers: fix mapping files to layers 2015-08-19 18:05:49 +01:00