mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
archiver.bbclass: Improve work-shared checking
There are other recipes except the listed ones which use work-shared, improve the checking to make other recipes such as llvm-project-source work with do_ar_patched. (From OE-Core rev: 5fbb4ca8da4f4f1ea426275c45634802dcb5a575) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b3f6a6d87d
commit
bb0566eafd
@@ -468,10 +468,8 @@ def create_diff_gz(d, src_orig, src, ar_outdir):
|
||||
os.chdir(cwd)
|
||||
|
||||
def is_work_shared(d):
|
||||
pn = d.getVar('PN')
|
||||
return pn.startswith('gcc-source') or \
|
||||
bb.data.inherits_class('kernel', d) or \
|
||||
(bb.data.inherits_class('kernelsrc', d) and d.expand("${TMPDIR}/work-shared") in d.getVar('S'))
|
||||
sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared')
|
||||
return d.getVar('S').startswith(sharedworkdir)
|
||||
|
||||
# Run do_unpack and do_patch
|
||||
python do_unpack_and_patch() {
|
||||
|
||||
Reference in New Issue
Block a user