summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2023-12-11 07:13:17 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-13 11:34:27 +0000
commitbb0566eafd25f700b6e4a077b34e56a12fb47638 (patch)
tree703065fec18493c3fa5afd0ff622a7ad3877cc6f /meta/classes
parentb3f6a6d87dfba7f0dc82f7921a178bac022c4da7 (diff)
downloadpoky-bb0566eafd25f700b6e4a077b34e56a12fb47638.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/archiver.bbclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 0eee1abefa..80a69cf31d 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -468,10 +468,8 @@ def create_diff_gz(d, src_orig, src, ar_outdir):
468 os.chdir(cwd) 468 os.chdir(cwd)
469 469
470def is_work_shared(d): 470def is_work_shared(d):
471 pn = d.getVar('PN') 471 sharedworkdir = os.path.join(d.getVar('TMPDIR'), 'work-shared')
472 return pn.startswith('gcc-source') or \ 472 return d.getVar('S').startswith(sharedworkdir)
473 bb.data.inherits_class('kernel', d) or \
474 (bb.data.inherits_class('kernelsrc', d) and d.expand("${TMPDIR}/work-shared") in d.getVar('S'))
475 473
476# Run do_unpack and do_patch 474# Run do_unpack and do_patch
477python do_unpack_and_patch() { 475python do_unpack_and_patch() {