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]

(From OE-Core rev: 6b04ae2c0439b83c0445fd1b8cb9cba5cee6b9bc)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Bruce Ashfield 2015-04-24 12:13:53 -04:00 committed by Richard Purdie
parent aee1b2acfb
commit d812d32ee6
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://git/tools/kgit;beginline=5;endline=9;md5=d8d1d729a70c
DEPENDS = "git-native"
SRCREV = "83e5493ea46067152609008ade131971eaebbb27"
SRCREV = "79bc82453c26d426d3d8fd05d5da37cf5fc4068c"
PR = "r12"
PV = "0.2+git${SRCPV}"