devtool: fix extracting source for work-shared recipes
Recipes that use work-shared (such as libgcc) are capable of unpacking the source, but it doesn't necessarily unpack to ${WORKDIR}/${BP}. Use the last part of the actual S value instead which is more likely to work. (From OE-Core rev: 0bab8086fdef93b88d5ec6b88b07ccc921dd786f) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5bc437b985
commit
a34f733d3a
|
@ -288,7 +288,7 @@ def _extract_source(srctree, keep_temp, devbranch, d):
|
|||
if bb.data.inherits_class('kernel', d):
|
||||
crd.setVar('S', '${WORKDIR}/source')
|
||||
else:
|
||||
crd.setVar('S', '${WORKDIR}/${BP}')
|
||||
crd.setVar('S', '${WORKDIR}/%s' % os.path.basename(d.getVar('S', True)))
|
||||
if bb.data.inherits_class('kernel', d):
|
||||
# We don't want to move the source to STAGING_KERNEL_DIR here
|
||||
crd.setVar('STAGING_KERNEL_DIR', '${S}')
|
||||
|
|
Loading…
Reference in New Issue