]> code.ossystems Code Review - openembedded-core.git/commit
kern-tools: unify meta directory detection
authorBruce Ashfield <bruce.ashfield@windriver.com>
Fri, 24 Apr 2015 16:13:53 +0000 (12:13 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Apr 2015 06:56:00 +0000 (07:56 +0100)
commit6b04ae2c0439b83c0445fd1b8cb9cba5cee6b9bc
tree2af85797b7d8328f1784e115804e56a94ac1dde8
parente64a961e9c5e94e643896e4b68b85bd5b4c27470
kern-tools: unify meta directory detection

It is possible that recipe specific tasks, or build processes drop
files into the kernel source directory. These files can cause problems
with the meta data detection in the kern-tools.

With this change, we have a single unified meta data detection routine,
that logs the result in a new file ".metadir", which subsequent scripts
can find, and use, thereby avoid repeating the same check many times.

We also enhance the check to look for a sentinel file in a proper meta
directory, to avoid false positives when an unexpected kernel process
leaves an uncommitted directory in the kernel dir.

[YOCTO: #7441]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb