diff options
author | Christopher Larson <chris_larson@mentor.com> | 2015-07-16 16:23:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-23 08:48:41 +0100 |
commit | c56cb3156590db867541eabad9e19a20f24b800d (patch) | |
tree | 245ff365efff5b5213f1c5ab567f61ea08990436 /scripts | |
parent | 5c080f71bff2b3b369c0a88ef3c9e67f03b31bcd (diff) | |
download | poky-c56cb3156590db867541eabad9e19a20f24b800d.tar.gz |
recipetool: appendsrcfile: handle S == STAGING_KERNEL_DIR
When determining the path from WORKDIR to the extracted sources, we're using
S, but if S is in work-shared, that's problematic and won't give us good
results, so assume 'git' for that case, warning when appropriate.
(From OE-Core rev: dc70cf470f18c97b6762cbf7aca723769b47bc7d)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/recipetool/append.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py index ed4af2054a..3f2f9a4f4f 100644 --- a/scripts/lib/recipetool/append.py +++ b/scripts/lib/recipetool/append.py | |||
@@ -356,6 +356,10 @@ def appendsrc(args, files, rd): | |||
356 | for newfile, srcfile in files.iteritems(): | 356 | for newfile, srcfile in files.iteritems(): |
357 | src_destdir = os.path.dirname(srcfile) | 357 | src_destdir = os.path.dirname(srcfile) |
358 | if not args.use_workdir: | 358 | if not args.use_workdir: |
359 | if rd.getVar('S', True) == rd.getVar('STAGING_KERNEL_DIR', True): | ||
360 | srcdir = os.path.join(workdir, 'git') | ||
361 | if not bb.data.inherits_class('kernel-yocto', rd): | ||
362 | logger.warn('S == STAGING_KERNEL_DIR and non-kernel-yocto, unable to determine path to srcdir, defaulting to ${WORKDIR}/git') | ||
359 | src_destdir = os.path.join(os.path.relpath(srcdir, workdir), src_destdir) | 363 | src_destdir = os.path.join(os.path.relpath(srcdir, workdir), src_destdir) |
360 | src_destdir = os.path.normpath(src_destdir) | 364 | src_destdir = os.path.normpath(src_destdir) |
361 | 365 | ||